AP Computer Science Aeasymcq1 pt
The sum of all elements in a 2D array of ints requires
A.nested loops adding each element
B.one addition
C.reading grid.length only
D.the sum method
Every element contributes to the sum.
Anested loops adding each element
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →