AP Computer Science Aeasymcq1 pt
Counting the elements in one specific row r uses
A.grid[r].length
B.grid.length
C.grid[0].length
D.r
The row's own length is its count.
Agrid[r].length
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →