Exam-style question
Try this first
Explain the three combining principles used in imperative programs: sequence, iteration and selection. Then explain the difference between definite iteration and indefinite iteration, including the difference between a condition at the start and a condition at the end of an iterative structure.
Answer and explanation
Concise answer
Sequence means that statements are executed in the order in which they appear.
Why this is correct
A strong answer identifies all three principles and explains their roles rather than merely naming them. It also distinguishes the number-controlled nature of definite iteration from the condition-controlled nature of indefinite iteration, and explains the important theoretical difference between testing before and after the loop body.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
