AP Computer Science Amediummcq1 pt

Assigning a new value to the loop variable of an enhanced for loop

A.does not change the array
B.changes the array element
C.causes a compile error
D.throws an exception

Explanation

Core Concept

The variable is a copy.

Correct Answer

Adoes not change the array

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 →