AP Computer Science Aeasymcq1 pt

In the loop for (int[] row : grid), row is

A.each row of the 2D array
B.each element's int value
C.each column index
D.the whole grid

Explanation

Core Concept

For-each yields the inner arrays.

Correct Answer

Aeach row of the 2D array

More Unit 8: 2D Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 8: 2D Array Questions →