Computer Science for IGCSE & O level - Programming (Section 11 - No. 18)

Which type of loop guarantees that the code within the loop's body will always execute at least once?
For loop
While loop
Do-While loop
Repeat...Until loop

Explanation

The condition is checked at the *end* of a Repeat...Until loop, guaranteeing at least one execution of the loop body.

Comments (0)

Advertisement