AP Computer Science Principleshardmcq1 pt
A loop that runs exactly 5 times should use which condition?
A.count < 5 with count starting at 0
B.count ≤ 5 with count starting at 0
C.count < 5 with count starting at 1
D.count = 5
Values 0 through 4 give five passes.
Acount < 5 with count starting at 0
Practice more AP Computer Science Principles questions with full explanations
Practice Unit 3: Algorithms and Programming Questions →