Which of the following can loop through an array without referring to the elements by index?
A. do-while loop
B. for (traditional)
C. for-each
D. while
Answer:C
Which of the following can loop through an array without referring to the elements by index?
A. do-while loop B. for (traditional) C. for-each D. while
Explanation: While a traditional for loop often loops through an array, it uses an index to do so, making Option B incorrect.