AP Computer Science Amediummcq1 pt
Finding the sum of one column c in a 2D array requires
A.a single loop over rows reading grid[r][c]
B.nested loops over the whole array
C.reading grid[c] only
D.no loop
One element per row contributes.
Aa single loop over rows reading grid[r][c]
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →