Multiple Choice Question

Quiz Guidelines



Which of the following are true about the enhanced for loop?

Select 3 options

A. It can iterate over an array or a Collection but not a Map.
B. Using an enhanced for loop prevents the code from going into an infinite loop
C. Using an enhanced for loop on an array may cause infinite loop.
D. An enhanced for loop can iterate over a Map.
E. You cannot find out the number of the current iteration while iterating.

Q&A Set: