ExamsFirst
LCOrdinary Level Computer Science

Algorithms

19 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 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

2 questions · 5 parts
  • Question 7
    Part A
    2026
    2026 · Part A · Page 6Full paper
    Loading the exam page…
    Has diagram
  • Question 13
    Part A
    2026
    2026 · Part A · Page 9Full paper
    Loading the exam page…
    Q13 (a)(i)Has diagram
    Q13 (b)(i)
    Q13 (b)(ii)
    Q13 (c)

2025

3 questions
  • Question 10
    Part A
    2025

    The flowchart, in Figure 3 below, is a representation of an algorithm. Examine the flowchart and answer the question that follows. Calculate the output of the algorithm. [Flowchart: Start -> num = 0 -> print num -> num = num + 2 -> num <= 10? (Yes) -> print num -> num = num + 2 -> ... (loop back to num <= 10?). (No) -> End.]

  • Question 11
    Part A
    2025
    2025 · Part A · Page 9Full paper
    Loading the exam page…
    Has diagram
  • Question 14
    Part A
    2025

    When the user inserts the correct amount of money and enters the code of an item, the vending machine will perform a number of checks. Create an algorithm or flowchart to describe the process outlined in the following bullet points: • The vending machine checks if there are any of that particular item available. • If there are any items available, one is dispensed to the user. • If there are no items available, the user is asked to enter another code. • If there are less than three of that particular item remaining a message is sent to head office to order more stock for the vending machine.

2024

3 questions · 9 parts
  • Question 5
    Part A
    2024
    2024 · Part A · Page 5Full paper
    Loading the exam page…
  • Question 13
    Part A
    2024
    2024 · Part A · Page 11Full paper
    Loading the exam page…
    Q13 (a)
    Q13 (a)(iv)
    Q13 (a)(v)
    Q13 (b)(i)
    Q13 (b)(ii)
    Q13 (b)(iii)
  • Question 15
    Part A
    2024
    Q15 (d)(i)

    Met Éireann will issue a yellow, orange or red wind warning based on the criteria in the table below. Yellow Wind Warning Speed between 90 and 110km/h Orange Wind Warning Speed between 111 and 130km/h Red Wind Warning Speed greater than 130km/h Based on this information create an algorithm, using a flowchart or pseudo code, that will calculate if a warning should issue and if so what colour the warning should be.

    Q15 (d)(ii)

    Which of the following is the best set of data values to test your algorithm with? Select your answer by putting a tick (✔) in the appropriate box. [89, 90, 100, 110, 111, 129, 130, 131] [20, 70, 80, 90, 95, 135, 145, 165] [19, 60, 65, 115, 116, 138, 139, 140] Justify your answer below.

2023

3 questions · 7 parts
  • Question 3
    Part A
    2023

    Using either a flowchart or pseudocode, create an algorithm which must do the following: • Ask the user to input three separate numbers • Work out the average of the three numbers • Print the average of the 3 numbers [Blank space for flowchart or pseudocode]

  • Question 8
    Part A
    2023
    2023 · Part A · Page 6Full paper
    Loading the exam page…
    Q8 (a)Has diagram
    Q8 (b)
  • Question 13
    Part A
    2023
    2023 · Part A · Page 11Full paper
    Loading the exam page…
    Q13 (b)(i)
    Q13 (b)(ii)
    Q13 (b)(iii)
    Q13 (b)(iv)

2022

5 questions · 8 parts
  • Question 2
    Part A
    2022
    2022 · Part A · Page 3Full paper
    Loading the exam page…
    Has diagram
  • Question 5
    Part A
    2022
    2022 · Part A · Page 5Full paper
    Loading the exam page…
    Q5 (a)
    Q5 (b)
  • Question 6
    Part A
    2022
    2022 · Part A · Page 6Full paper
    Loading the exam page…
    Q6 (a)
    Q6 (b)
  • Question 12
    Part A
    2022
    2022 · Part A · Page 10Full paper
    Loading the exam page…
    Q12 (a)Has diagram
    Q12 (b)Has diagram
  • Question 14
    Part A
    2022

    Using either pseudocode or a flowchart, design the algorithm to solve the problem for the school principal.

2021

3 questions · 8 parts
  • Question 8
    Part A
    2021
    2021 · Part A · Page 6Full paper
    Loading the exam page…
    Has diagram
  • Question 10
    Part A
    2021
    2021 · Part A · Page 8Full paper
    Loading the exam page…
    Q10 (a)
    Q10 (b)
  • Question 14
    Part A
    2021
    2021 · Part A · Page 14Full paper
    Loading the exam page…
    Q14 (a)(i)
    Q14 (a)(ii)
    Q14 (a)(iii)
    Q14 (b)(i)
    Q14 (b)(ii)
Algorithms · Computer Science | ExamsFirst