ITPEC IP April 2021 Question 6
ITPEC IP April 2021 — Question 6 of 100
Diagram (d) is a while-type loop because it tests the condition before executing the process. If the continuation condition is true, the process runs and control returns to the condition; if false, control exits. Therefore the body may execute zero times.
Answer (d)
Why not others:
- (a) is a two-way selection
- (b) tests after the process, so it is a repeat-until or do-while-type loop
- (c) is a one-way selection without repetition
Key rule: A while loop is a pre-test loop: condition → body → back to condition.
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.