Standard difficulty · 20 questions · 40 marks · Time: 40 minutes
Show your working for Sections B and C. Answers are on the last page — try every question first!
Python Lists · AW-9CT-PYL-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.
| Q | Answer | Working |
|---|---|---|
| 1 | (d) 0 | — |
| 2 | (c) 75 | indexes start at 0: a[4] is item 5 |
| 3 | (c) 38 | a[-4] counts 4 from the end |
| 4 | (b) [50, 97] | from index 2 up to, not including, 4 |
| 5 | (a) 4 | append and insert add one item; remove and pop take one away |
| 6 | (b) ['Zoya', 'Ananya', 'Asha'] | after remove and append: ['Zoya', 'Vikram', 'Ananya', 'Asha']; pop(1) removes index 1 |
| 7 | (a) 17 | a is now [31, 17, 60, 62, 71, 34] |
| 8 | (a) 39 | sorted: [3, 6, 21, 36, 39] |
| 9 | An ordered collection of items in square brackets, e.g. marks = [78, 92, 65]. | — |
| 10 | (a) 65; (b) 64 | indexes start at 0; negative indexes count from the end |
| 11 | 39, 42, 60, 14, 58 | indexes 2 to 6 |
| 12 | 56, 13, 63, 10 | carry out each line in turn |
| 13 | 9 | a ends as [20, 2, 59, 12, 27, 33, 80, 86, 97] |
| 14 | 4 | 90 is item 5, so its index is 4 |
| 15 | 6, 10, 14, 18, 22 | add 2 to each item |
| 16 | Meera, Ananya, Priya, Arjun | pop(1) removes the item at index 1 |
| 17 | q = ["Arjun", "Isha", "Kabir", "Meera"]; q.remove("Kabir"); q.append("Jay"); q.pop(1) removes the item at index 1; print(q). | — |
| 18 | (a) 6; (b) 77, 41, 66; (c) 41, 66, 54 | num[1:4] is the 2nd to 4th items; num[-4:-1] is the 3rd to 5th |
| 19 | (a) 10, 16, 19, 22, 34, 37, 43; (b) 7; (c) 53 | extend adds every item; sort puts them in order |
| 20 | (a) 313; (b) 95; (c) 3 | marks at least 60: 74, 75, 95 |