AP Computer Science Amediummcq1 pt
To check whether every element is positive, use
A.a loop that fails if any element is not positive
B.a check of only the first element
C.a check of only the last element
D.sorting the array
One violation disproves the property.
Aa loop that fails if any element is not positive
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →