Paper 3: Challenge: algorithmic loops and function design
Chapter practice with ten items, answers and a one-line note for each, about 25 minutes.
| Item | Detail |
|---|---|
| Questions | 10 |
| Suggested time | 25 |
| Difficulty mix | Foundation 4 · Intermediate 2 · Challenge 2 · Error redo 2 |
| Chapter | Chapter: S3 ICT: Python loops and functions |
| Level | Challenge |
| # | Answer | One-line note |
|---|---|---|
| 1 | 15. | 1+2+3+4+5 = 15, the sum of the row counts. |
| 2 | 385. | Each round adds i * i, and the closed form 10 x 11 x 21 / 6 agrees. |
| 3 | Eight steps. | The path is 6-3-10-5-16-8-4-2-1, which is eight operations. |
| 4 | 6. | The remainders run 12 then 6 then 0, and the last non-zero divisor is 6. |
| 5 | 21. | Each round adds n % 10 then does n //= 10, giving 4+7+2+8 = 21. |
| 6 | Ten. | They are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. |
| 7 | 143. | The ten terms are 1, 1, 2, 3, 5, 8, 13, 21, 34 and 55, which total 143. |
| 8 | Nine. | They are 1, 2, 3, 4, 6, 9, 12, 18 and 36. |
| 9 | Seven. | The values fall 100, 50, 25, 12.5, 6.25, 3.125, 1.5625 then 0.78125, so the seventh round is the first below 1. |
| 10 | It uses the assignment sign = instead of the comparison ==, so Python raises a syntax error. | Comparison needs ==; and even with == 0 the loop never ends unless count changes inside the body. |
Want the whole chapter? See all four difficulty papers on the chapter page.Tutor Registration →
Questions and answers are written originally by the TutorZone team and are not taken from any school, publisher or examination authority paper. Every value is checked by computer.

