Paper 4: Retry: correcting ten common slips
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 | Retry |
| # | Answer | One-line note |
|---|---|---|
| 1 | No, it runs from 0 to 4. | A single argument to range is a count, and the start defaults to 0. |
| 2 | No, it yields 1, 2, 3 and 4 only. | The second argument is an exclusive stop value. |
| 3 | False: the variables in the condition must change inside the loop. | A condition that never changes stays true for ever and the program hangs. |
| 4 | No: = assigns, and comparison needs ==. | Writing `if x = 3` is an immediate syntax error. |
| 5 | False: print only displays, and without return the function gives None. | Assigning the result of such a function stores None. |
| 6 | No, the name only exists after the def statement executes. | Python runs top to bottom, so calling early raises NameError. |
| 7 | No, it is a local variable. | Local names disappear when the call ends, so pass values back with return. |
| 8 | No, only 0, 2, 4, 6 and 8, five numbers. | A step of 2 halves the count, and the stop value 10 is excluded. |
| 9 | No, it runs 4 x 5 = 20 times. | The inner loop restarts in full on every outer round. |
| 10 | No: break leaves the loop, while continue skips only the rest of this round. | After continue the loop still moves on to its next round. |
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.

