Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 4 - No. 50)
What is a 'pre-condition' loop?
A loop where the condition is checked before each iteration.
A loop where the condition is checked after each iteration.
A loop with a fixed number of iterations.
A loop used for data validation.
Explanation
In a pre-condition loop, the condition is evaluated before the loop body is executed. This means the loop may not execute at all if the condition is initially false.
Comments (0)
