Free practice · boolean · easy
Practice
Recognize a while-loop update
If a while loop depends on count < 5, its body normally needs a reachable update that can make that condition false.
Repeated-state trace
A loop must make visible progress toward a defined stop
- InitializeSet deliberate starting state
- ReadTake the next item or state
- DecideEvaluate the loop condition
- UpdateChange counters and accumulators
- RecordWrite the reached state
- StopConfirm the stopping rule
Record the item, condition, counter, accumulator, and stopping decision on every pass to expose skipped, duplicated, or non-terminating work.