while loop: Repeats a block of code as long as the boolean condition is true; the condition is checked before each iteration.
How to apply it: Trace while loops by evaluating the condition, executing the body, then re-checking the condition.
Course: AP Computer Science A · Unit: Iteration
Practice questions about while loop on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.