Grade 11 · Practical
Control structures
Structured Programming · about 3 min
Structured programming builds every program from three control structures: sequence, selection and iteration. Grade 11 combines and nests them for real problems.
Key points- Sequence: statements run top to bottom in order.
- Selection: `if/else`, nested `if`, and `case` choose between paths.
- Iteration: `for`, `while` and `repeat` repeat blocks.
- Nesting a loop inside a decision (or a decision inside a loop) handles most CAPS problems — keep indentation clean so the structure is visible.
- Control structure — sequence, selection or iteration; the building blocks of logic.
- Nesting — placing one control structure inside another.
EXAM TIP
read the problem for the pattern — "for each learner, if they passed…" is a loop containing a decision.