AP Computer Science Amediummcq1 pt
An enhanced for loop is best used when you need to
A.read every element
B.change element values
C.know the index
D.skip elements by index
For-each suits read-only traversal.
Aread every element
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →