Programming — Python
21 past questions across 6 years (2021–2026).
Start here
Choose your study mode
The full question list is on the right. Use notes or quiz mode when you want focused revision.
Notes
Notebook-style AI notes for this topic.
Quiz mode
Exam-style answers with marking-scheme feedback.
Print pack
Clean print view for paper-based study.
Open inline study tools (notes + practice generator)
Study notes
AI-written notes for Programming — Python in a notebook-style page — with tables, diagrams and worked examples.
Practice question
A fresh exam-style question, generated on demand.
Past exam questions
Quiz2026
4 questions · 12 parts- Question 1Part A2026 · Part A · Page 3Full paperLoading the exam page…(54 marks)Has diagram
- Question 11Part A2026 · Part A · Page 8Full paperLoading the exam page…Has diagram
- Question 13Part AQ13 (a)(ii)
State the output of the program if the user enters “Orange” when asked for a fruit to search for.
Q13 (a)(iii)Explain why the programmer has used the lower() function in this program.
- Question 16Part C2026 · Part C · Page 4Full paperLoading the exam page…Q16 (a)Has diagramQ16 (a)(i)Q16 (a)(ii)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Q16 (b)Has diagram
2025
5 questions · 11 parts- Question 1Part A2025 · Part A · Page 3Full paperLoading the exam page…(54 marks)Has diagram
- Question 5Part A2025 · Part A · Page 5Full paperLoading the exam page…Has diagram
- Question 12Part A
A piece of Python code is displayed below. 1 myNum = "6" 2 result = myNum + 3 3 print (result) When the code is run in an integrated development environment (IDE), it produces the following error: TypeError: can only concatenate string (not "integer") to string Explain why this error has occurred and how it could be fixed.
- Question 14Part A2025 · Part A · Page 13Full paperLoading the exam page…Q14 (a)(i)Q14 (a)(ii)Has diagram
- Question 16Part C2025 · Part C · Page 4Full paperLoading the exam page…Q16 (a)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Q16 (b)
2024
3 questions · 11 parts- Question 1Part A2024 · Part A · Page 3Full paperLoading the exam page…
- Question 8Part A2024 · Part A · Page 7Full paperLoading the exam page…Q8 (a)Q8 (a)Q8 (b)
- Question 16Part C2024 · Part C · Page 4Full paperLoading the exam page…Q16 (a)(i)Q16 (a)(ii)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Has diagramQ16 (b)(80 marks)
2023
4 questions · 12 parts- Question 1Part A2023 · Part A · Page 3Full paperLoading the exam page…(54 marks)Has diagram
- Question 11Part A2023 · Part A · Page 8Full paperLoading the exam page…Q11 (a)Q11 (b)Q11 (c)
- Question 13Part A2023 · Part A · Page 10Full paperLoading the exam page…Has diagram
- Question 16Part C2023 · Part C · Page 4Full paperLoading the exam page…Q16 (a)(i)Q16 (a)(ii)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Q16 (b)Has diagram
2022
2 questions · 9 parts- Question 1Part A2022 · Part A · Page 3Full paperLoading the exam page…Has diagram
- Question 16Part C2022 · Part C · Page 4Full paperLoading the exam page…Q16 (a)Q16 (a)(i)Q16 (a)(ii)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Q16 (a)(vii)
2021
3 questions · 10 parts- Question 1Part A2021 · Part A · Page 3Full paperLoading the exam page…(30 marks)Has diagram
- Question 9Part A2021 · Part A · Page 7Full paperLoading the exam page…Has diagram
- Question 16Part C2021 · Part C · Page 3Full paperLoading the exam page…Q16 (a)Q16 (a)(i)Q16 (a)(ii)Q16 (a)(iii)Q16 (a)(iv)Q16 (a)(v)Q16 (a)(vi)Q16 (a)(vii)