ExamsFirst
LCOrdinary Level Computer Science

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.

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.

Open notebook & generate

Practice question

A fresh exam-style question, generated on demand.

Past exam questions

Quiz
Year

2026

4 questions · 12 parts
  • Question 1
    Part A
    202654 marks
    2026 · Part A · Page 3Full paper
    Loading the exam page…
    (54 marks)Has diagram
  • Question 11
    Part A
    2026
    2026 · Part A · Page 8Full paper
    Loading the exam page…
    Has diagram
  • Question 13
    Part A
    2026
    Q13 (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 16
    Part C
    2026
    2026 · Part C · Page 4Full paper
    Loading the exam page…
    Q16 (a)Has diagram
    Q16 (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 1
    Part A
    202554 marks
    2025 · Part A · Page 3Full paper
    Loading the exam page…
    (54 marks)Has diagram
  • Question 5
    Part A
    2025
    2025 · Part A · Page 5Full paper
    Loading the exam page…
    Has diagram
  • Question 12
    Part A
    2025

    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 14
    Part A
    2025
    2025 · Part A · Page 13Full paper
    Loading the exam page…
    Q14 (a)(i)
    Q14 (a)(ii)Has diagram
  • Question 16
    Part C
    2025
    2025 · Part C · Page 4Full paper
    Loading 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 1
    Part A
    2024
    2024 · Part A · Page 3Full paper
    Loading the exam page…
  • Question 8
    Part A
    2024
    2024 · Part A · Page 7Full paper
    Loading the exam page…
    Q8 (a)
    Q8 (a)
    Q8 (b)
  • Question 16
    Part C
    202480 marks total
    2024 · Part C · Page 4Full paper
    Loading the exam page…
    Q16 (a)(i)
    Q16 (a)(ii)
    Q16 (a)(iii)
    Q16 (a)(iv)
    Q16 (a)(v)
    Q16 (a)(vi)Has diagram
    Q16 (b)(80 marks)

2023

4 questions · 12 parts
  • Question 1
    Part A
    202354 marks
    2023 · Part A · Page 3Full paper
    Loading the exam page…
    (54 marks)Has diagram
  • Question 11
    Part A
    2023
    2023 · Part A · Page 8Full paper
    Loading the exam page…
    Q11 (a)
    Q11 (b)
    Q11 (c)
  • Question 13
    Part A
    2023
    2023 · Part A · Page 10Full paper
    Loading the exam page…
    Has diagram
  • Question 16
    Part C
    2023
    2023 · Part C · Page 4Full paper
    Loading 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 1
    Part A
    2022
    2022 · Part A · Page 3Full paper
    Loading the exam page…
    Has diagram
  • Question 16
    Part C
    2022
    2022 · Part C · Page 4Full paper
    Loading 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 1
    Part A
    202130 marks
    2021 · Part A · Page 3Full paper
    Loading the exam page…
    (30 marks)Has diagram
  • Question 9
    Part A
    2021
    2021 · Part A · Page 7Full paper
    Loading the exam page…
    Has diagram
  • Question 16
    Part C
    2021
    2021 · Part C · Page 3Full paper
    Loading 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)