Exam-style question
Try this first
What is the purpose of iteration in programming?.
- A.To execute code once
- B.To repeat code multiple times
- C.To make decisions
- D.To store data
Answer and explanation
Concise answer
To repeat code multiple times
Why this is correct
Iteration allows a set of instructions to be executed repeatedly until a specified condition is met.
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.
