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.
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 Algorithms 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 · 6 parts- Question 6Part A
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 7Part A2026 · Part A · Page 6Full paperLoading the exam page…Q7 (a)Has diagramQ7 (b)
- Question 12Part A2026 · Part A · Page 8Full paperLoading the exam page…Q12 (a)Has diagramQ12 (b)
- Question 14Part A2026 · Part A · Page 13Full paperLoading the exam page…Has diagram
2025
2 questions · 11 parts- Question 7Part A2025 · Part A · Page 6Full paperLoading the exam page…Q7 (a)Q7 (b)
- Question 14Part A2025 · Part A · Page 13Full paperLoading the exam page…Q14 (a)(ii)Has diagramQ14 (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 4Part A2024 · Part A · Page 4Full paperLoading the exam page…Has diagram
- Question 11Part A2024 · Part A · Page 8Full paperLoading the exam page…Q11 (a)Has diagramQ11 (b)
- Question 14Part A2024 · Part A · Page 15Full paperLoading the exam page…Q14 (a)(i)Q14 (a)(ii)Q14 (a)(iii)Q14 (b)(vi)Q14 (c)(i)Has diagramQ14 (c)(ii)Q14 (c)(iii)
2023
5 questions · 17 parts- Question 8Part A2023 · Part A · Page 7Full paperLoading the exam page…Q8 (a)(25 marks)Has diagramQ8 (b)(i)(25 marks)Q8 (b)(ii)(25 marks)
- Question 9Part A2023 · Part A · Page 8Full paperLoading the exam page…Q9 (a)(25 marks)Has diagramQ9 (b)(25 marks)
- Question 10Part AQ10 (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 13Part A2023 · Part A · Page 13Full paperLoading the exam page…Q13 (b)(i)(76 marks)Has diagramQ13 (b)(ii)(76 marks)Q13 (b)(iii)(76 marks)
- Question 15Part A2023 · Part A · Page 18Full paperLoading the exam page…Q15 (a)(i)(130 marks)Q15 (a)(ii)(130 marks)Q15 (a)(iii)(130 marks)Q15 (a)(iv)(130 marks)Has diagramQ15 (a)(v)(130 marks)Q15 (c)(i)(130 marks)Q15 (c)(ii)(130 marks)
2022
5 questions · 14 parts- Question 5Part A2022 · Part A · Page 6Full paperLoading the exam page…Has diagram
- Question 10Part A2022 · Part A · Page 9Full paperLoading the exam page…Has diagram
- Question 11Part A2022 · Part A · Page 10Full paperLoading the exam page…Q11 (a)Has diagramQ11 (b)
- Question 12Part A2022 · Part A · Page 11Full paperLoading the exam page…Has diagram
- Question 14Part A2022 · Part A · Page 16Full paperLoading the exam page…Q14 (a)(i)Q14 (a)(ii)Q14 (a)(iii)Q14 (a)(iv)Q14 (a)(v)Q14 (b)(i)Has diagramQ14 (b)(ii)Q14 (b)(iii)Q14 (b)(iv)
2021
5 questions · 16 parts- Question 5Part A2021 · Part A · Page 6Full paperLoading the exam page…Q5 (a)Has diagramQ5 (b)
- Question 6Part A2021 · Part A · Page 7Full paperLoading the exam page…
- Question 11Part A
State two benefits of computer modelling. 1. 2.
- Question 13Part A2021 · Part A · Page 13Full paperLoading the exam page…
- Question 14Part A2021 · Part A · Page 18Full paperLoading the exam page…Q14 (a)(i)Has diagramQ14 (a)(ii)Has diagramQ14 (a)(iii)Has diagramQ14 (a)(iv)Q14 (a)(v)Q14 (a)(vi)Has diagramQ14 (b)(i)Has diagramQ14 (b)(ii)Q14 (b)(iii)Q14 (b)(iv)Q14 (b)(v)
2020
3 questions · 10 parts- Question 8Part A2020 · Part A · Page 7Full paperLoading the exam page…Has diagram
- Question 12Part A2020 · Part A · Page 10Full paperLoading the exam page…Has diagram
- Question 13Part A2020 · Part A · Page 11Full paperLoading the exam page…Q13 (a)(i)Q13 (a)(iii)Q13 (a)(iv)Q13 (a)(v)Q13 (b)(i)Q13 (b)(ii)Has diagramQ13 (b)(iii)Q13 (c)