Paper 2: Advanced: nested loops, defaults and break
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 | Advanced |
| # | Answer | One-line note |
|---|---|---|
| 1 | 70. | The values are 1, 4, 7, 10, 13, 16 and 19, and they sum to 70. |
| 2 | Twelve times. | The inner loop finishes four rounds for every outer round, so 3 x 4 = 12. |
| 3 | 25 and 8. | exp falls back to the default 2, and passing 3 overrides that default. |
| 4 | Four digits. | Each round does n = n // 10 and adds one to the counter, so 4728 reaches 0 after four rounds. |
| 5 | 120. | 1 x 2 x 3 x 4 x 5 = 120. |
| 6 | Fourteen. | 100 / 7 is 14 remainder 2, so fourteen multiples fit inside the range. |
| 7 | 35. | 12 + 8 + 15 = 35, and the accumulator must start at 0. |
| 8 | 9. | The conditional expression returns a when a > b holds. |
| 9 | 14. | break leaves the whole loop at once, so only the first match prints. |
| 10 | None. | Any function without return hands back None; print only displays text. |
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.

