Standard difficulty · 20 questions · 40 marks · Time: 37 minutes
Show your working for Sections B and C. Answers are on the last page — try every question first!
Python Basics · AW-9CT-PYB-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.
| Q | Answer | Working |
|---|---|---|
| 1 | (d) 3 | — |
| 2 | (a) 0 | Python does ** first, then * / // %, then + and −, left to right |
| 3 | (c) int | — |
| 4 | (a) abna | + joins two strings |
| 5 | (c) 55 | run each line in turn |
| 6 | (a) False | work out each comparison, then not, then and, then or |
| 7 | (c) 33.0 | int() and float() turn values into numbers |
| 8 | (c) 17 | 22, 88, 88 // 5 = 17 |
| 9 | / gives the exact quotient as a float (7 / 2 = 3.5); // gives the whole-number part (7 // 2 = 3). | — |
| 10 | (a) 19; (b) 2 | 78 = 4 × 19 + 2 |
| 11 | x = 5, y = 17 | run each line in turn |
| 12 | 5353 | input() gives text, so * 2 repeats it |
| 13 | (a) 3; (b) 492 | % 10 gives the last digit; // 10 removes it |
| 14 | 156.0 | 3900 × 2 × 2 ÷ 100; / always gives a float |
| 15 | (a) 161; (b) 60 | area, then perimeter |
| 16 | 81.0 | 243 ÷ 3; / gives a float |
| 17 | km = float(input()) reads the length; m = km * 1000 converts it; print(m) shows the answer. | — |
| 18 | (a) 4; (b) 7; (c) 1849; (d) 439 | 43 = 9 × 4 + 7; str + str joins text |
| 19 | (a) 16.0; (b) 64.0 | 20% of 80 = 16 |
| 20 | (a) 498; (b) 702 | 2 × (78 + 117 + 54); 6 × 13 × 9 |