AP Computer Science Aeasymcq1 pt
Setting every element of an int array to zero uses
A.a loop assigning a[i] = 0
B.a = 0
C.length = 0
D.an enhanced for loop assignment
Each slot is overwritten.
Aa loop assigning a[i] = 0
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →