AP Computer Science Amediummcq1 pt

In an enhanced for loop, the loop variable type must

A.match the array element type
B.be int
C.be String
D.be boolean

Explanation

Core Concept

The variable receives each element.

Correct Answer

Amatch the array element type

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 →