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!
Working with Lists and Dictionaries · AW-11IP-LSD-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, so a[4] is item 5 |
| 3 | (a) [59, 14, 38, 16, 12] | a step of −1 walks the list backwards |
| 4 | (b) [26, 13, 54, 47] | + joins two lists |
| 5 | (a) 0 | index() gives the first position of 1 |
| 6 | (d) 89 | a later assignment to the same key replaces its value |
| 7 | (a) True | 'Pooja' is a key |
| 8 | (b) 98 | the largest value |
| 9 | append() adds its argument as one element at the end; extend() adds each element of an iterable at the end. | — |
| 10 | 35, 13, 59, 25, 55 | carry out each line in turn |
| 11 | 2, 3, 13, 20, 54, 59, 76 | smallest to largest |
| 12 | (a) 5; (b) 17; (c) 81; (d) 238 | count, smallest, largest, total |
| 13 | (a) 4; (b) 63 | d ends as {'Asha': 80, 'Pooja': 35, 'Ishaan': 52, 'Sahil': 63} |
| 14 | Nikhil, Jaya, Bhavna, Farhan | names with 60 or more, in the order they were added |
| 15 | 19 | sorted: [11, 16, 19, 23, 35, 54, 58, 59]; the third smallest |
| 16 | (a) 4; (b) 76 | update() replaces Aarav's value and adds Deepa |
| 17 | append (L.append(5)), insert (L.insert(1, 9)), extend (L.extend([3, 4])), remove (L.remove(9)), pop (L.pop()), sort (L.sort()); also count, index and reverse. | — |
| 18 | (a) Farhan 93; (b) Rahul 61 | each name is compared with the best and worst so far |
| 19 | (a) 73; (b) 7; (c) 1 | after insert: [45, 6, 47, 6, 37, 27, 63, 73]; pop() removes the last item |
| 20 | (a) 353; (b) Hindi; (c) 3 | values: 85, 83, 96, 41, 48 |