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

Explanation

Core Concept

One element per row contributes.

Correct Answer

Aa single loop over rows reading grid[r][c]

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 →