Paper 1: Variables and range basics
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: Programming basics: variables and loops |
| Level | Basic |
| # | Answer | One-line note |
|---|---|---|
| 1 | 8 | The right-hand side is evaluated first, so 5 plus 3 gives 8. |
| 2 | The text 34 | Two strings joined by a plus sign are concatenated, not added. |
| 3 | total_2 | A name may not start with a digit and may not contain a minus sign. |
| 4 | 5 times | range(5) yields 0 to 4, which is 5 values. |
| 5 | 1, 2 and 3 | The stop value 4 is excluded, so there are 3 passes. |
| 6 | Which statements belong to the loop | Only statements at the same indent level are repeated. |
| 7 | 15 | int converts the text to a whole number before the addition. |
| 8 | 3 and 1 | Floor division gives the quotient 3 and the modulo gives remainder 1. |
| 9 | Zero times | A false condition skips the body entirely. |
| 10 | A TypeError is raised | Text and integers cannot be added; convert with int first. |
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.

