ExamsFirst
LCHigher Level Computer Science

Algorithms

27 past questions across 7 years (2020–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 Algorithms 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 · 6 parts
  • Question 6
    Part A
    2026

    Question 6 Construct an algorithm that uses a while loop to display the values 0, 3, 6, 9 and 12. The algorithm can be expressed in a flowchart or in pseudo code.

  • Question 7
    Part A
    2026
    2026 · Part A · Page 6Full paper
    Loading the exam page…
    Q7 (a)Has diagram
    Q7 (b)
  • Question 12
    Part A
    2026
    2026 · Part A · Page 8Full paper
    Loading the exam page…
    Q12 (a)Has diagram
    Q12 (b)
  • Question 14
    Part A
    2026
    2026 · Part A · Page 13Full paper
    Loading the exam page…
    Has diagram

2025

2 questions · 11 parts
  • Question 7
    Part A
    2025
    2025 · Part A · Page 6Full paper
    Loading the exam page…
    Q7 (a)
    Q7 (b)
  • Question 14
    Part A
    2025
    2025 · Part A · Page 13Full paper
    Loading the exam page…
    Q14 (a)(ii)Has diagram
    Q14 (a)(iii)
    Q14 (b)(i)
    Q14 (b)(ii)
    Q14 (b)(iii)
    Q14 (c)(i)
    Q14 (c)(ii)
    Q14 (c)(iii)
    Q14 (iv)Has diagram

2024

3 questions · 10 parts
  • Question 4
    Part A
    2024
    2024 · Part A · Page 4Full paper
    Loading the exam page…
    Has diagram
  • Question 11
    Part A
    2024
    2024 · Part A · Page 8Full paper
    Loading the exam page…
    Q11 (a)Has diagram
    Q11 (b)
  • Question 14
    Part A
    2024
    2024 · Part A · Page 15Full paper
    Loading the exam page…
    Q14 (a)(i)
    Q14 (a)(ii)
    Q14 (a)(iii)
    Q14 (b)(vi)
    Q14 (c)(i)Has diagram
    Q14 (c)(ii)
    Q14 (c)(iii)

2023

5 questions · 17 parts
  • Question 8
    Part A
    202375 marks total
    2023 · Part A · Page 7Full paper
    Loading the exam page…
    Q8 (a)(25 marks)Has diagram
    Q8 (b)(i)(25 marks)
    Q8 (b)(ii)(25 marks)
  • Question 9
    Part A
    202350 marks total
    2023 · Part A · Page 8Full paper
    Loading the exam page…
    Q9 (a)(25 marks)Has diagram
    Q9 (b)(25 marks)
  • Question 10
    Part A
    202350 marks total
    Q10 (a)(25 marks)

    Quicksort is widely recognised as one of the most efficient sorting algorithms. It works by recursively partitioning a list about one of the elements known as the pivot. Consider the unsorted list of integers shown in Figure 5 below and answer the questions that follow. [List of numbers: 60, 30, 80, 40, 10, 50, 20, 70, 90] Using the leftmost element as the pivot, show the contents of the list after the initial partition by the quicksort algorithm. You should assume that the elements in the left and right sub-lists are not re-ordered.

    Q10 (b)(25 marks)

    Explain why 90 would have been a poor choice of pivot to partition the list shown in Figure 5.

  • Question 13
    Part A
    2023228 marks total
    2023 · Part A · Page 13Full paper
    Loading the exam page…
    Q13 (b)(i)(76 marks)Has diagram
    Q13 (b)(ii)(76 marks)
    Q13 (b)(iii)(76 marks)
  • Question 15
    Part A
    2023910 marks total
    2023 · Part A · Page 18Full paper
    Loading the exam page…
    Q15 (a)(i)(130 marks)
    Q15 (a)(ii)(130 marks)
    Q15 (a)(iii)(130 marks)
    Q15 (a)(iv)(130 marks)Has diagram
    Q15 (a)(v)(130 marks)
    Q15 (c)(i)(130 marks)
    Q15 (c)(ii)(130 marks)

2022

5 questions · 14 parts
  • Question 5
    Part A
    2022
    2022 · Part A · Page 6Full paper
    Loading the exam page…
    Has diagram
  • Question 10
    Part A
    2022
    2022 · Part A · Page 9Full paper
    Loading the exam page…
    Has diagram
  • Question 11
    Part A
    2022
    2022 · Part A · Page 10Full paper
    Loading the exam page…
    Q11 (a)Has diagram
    Q11 (b)
  • Question 12
    Part A
    2022
    2022 · Part A · Page 11Full paper
    Loading the exam page…
    Has diagram
  • Question 14
    Part A
    2022
    2022 · Part A · Page 16Full paper
    Loading the exam page…
    Q14 (a)(i)
    Q14 (a)(ii)
    Q14 (a)(iii)
    Q14 (a)(iv)
    Q14 (a)(v)
    Q14 (b)(i)Has diagram
    Q14 (b)(ii)
    Q14 (b)(iii)
    Q14 (b)(iv)

2021

5 questions · 16 parts
  • Question 5
    Part A
    2021
    2021 · Part A · Page 6Full paper
    Loading the exam page…
    Q5 (a)Has diagram
    Q5 (b)
  • Question 6
    Part A
    2021
    2021 · Part A · Page 7Full paper
    Loading the exam page…
  • Question 11
    Part A
    2021

    State two benefits of computer modelling. 1. 2.

  • Question 13
    Part A
    2021
    2021 · Part A · Page 13Full paper
    Loading the exam page…
  • Question 14
    Part A
    2021
    2021 · Part A · Page 18Full paper
    Loading the exam page…
    Q14 (a)(i)Has diagram
    Q14 (a)(ii)Has diagram
    Q14 (a)(iii)Has diagram
    Q14 (a)(iv)
    Q14 (a)(v)
    Q14 (a)(vi)Has diagram
    Q14 (b)(i)Has diagram
    Q14 (b)(ii)
    Q14 (b)(iii)
    Q14 (b)(iv)
    Q14 (b)(v)

2020

3 questions · 10 parts
  • Question 8
    Part A
    2020
    2020 · Part A · Page 7Full paper
    Loading the exam page…
    Has diagram
  • Question 12
    Part A
    2020
    2020 · Part A · Page 10Full paper
    Loading the exam page…
    Has diagram
  • Question 13
    Part A
    2020
    2020 · Part A · Page 11Full paper
    Loading the exam page…
    Q13 (a)(i)
    Q13 (a)(iii)
    Q13 (a)(iv)
    Q13 (a)(v)
    Q13 (b)(i)
    Q13 (b)(ii)Has diagram
    Q13 (b)(iii)
    Q13 (c)
Algorithms · Computer Science | ExamsFirst