AP Computer Science Aeasymcq1 pt
To find the sum of an int array, you
A.loop adding each element to an accumulator
B.use the sum method
C.read a.length only
D.concatenate the elements
Accumulation sums the elements.
Aloop adding each element to an accumulator
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →