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

Explanation

Core Concept

For-each suits read-only traversal.

Correct Answer

Aread every element

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →