AP Computer Science Amediummcq1 pt
Counting negative values in an array requires
A.incrementing a counter when an element is negative
B.using a.length
C.sorting the array
D.taking the first element
A conditional increments the count.
Aincrementing a counter when an element is negative
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →