Standard difficulty · 20 questions · 40 marks · Time: 40 minutes
Show your working for Sections B and C. Answers are on the last page — try every question first!
Flow of Control · AW-11CS-FLC-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.
| Q | Answer | Working |
|---|---|---|
| 1 | (d) indentation | — |
| 2 | (a) hot | 41: the first true condition wins |
| 3 | (c) 21 | i takes 0, 1, 2, 3, 4, 5, 6 (the stop value 7 is not included) |
| 4 | (b) 7 2 | n ends at 2 after 7 passes |
| 5 | (d) [1, 5, 9, 13, 17] | start at 1, add 4, stop before 20 |
| 6 | (c) 16 | 16 × 16 = 256 is the first square above 246 |
| 7 | (a) 28 | count the passes of the inner loop for each i |
| 8 | (c) change s = s + 1 to s = s + i | it adds 1 each time instead of i |
| 9 | break leaves the loop completely; continue skips the rest of the current pass and starts the next one. | — |
| 10 | 451 | i = 6, 7, 8, 9, 10, 11 |
| 11 | 6561 | 9 → 81 → 729 → 6561 |
| 12 | large even | 54 > 38 is true |
| 13 | ABCD | line 4 has the first 4 capital letters |
| 14 | 5040 | 1 × 2 × 3 × 4 × 5 × 6 × 7 |
| 15 | (a) 30; (b) 1 | the loop stops at the first multiple of 6 |
| 16 | a = 52, b = 72, c = 86 | each swap puts the smaller value first: the three numbers end up sorted |
| 17 | if runs a block when a condition is True; if-else chooses one of two blocks; if-elif-else checks conditions in turn, e.g. grades from marks. | — |
| 18 | (a) 0; (b) 28; (c) 6 | i: 4, 8, 12, 16, 20, 24; multiples of 7 added |
| 19 | (a) Palindrome; (b) Not a palindrome | it compares n with the digits reversed |
| 20 | 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 | each term is the sum of the two before it |