Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · May/June 2022 · Q49 Marks

This algorithm checks the temperature of hot food being served to customers. [Figure 4.1]

  1. (a)Complete the trace table for the algorithm using this input data: 75, 78, 84, 87, 91, 80, 75, 70, 65, 62, −1, 20[7]
  2. (b)State how the final output from the algorithm could be improved.[1]
  3. (c)Identify the process in the algorithm that is not required.[1]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2022). The mark or mark type is shown in brackets.

  1. [1] One mark for each correct column
  2. [1] include a message to explain the value output / e. g. "The percentage of meals not served” // outputting Hot, Cold and Serve
  3. [1] updating the Serve variable // Serve ← Serve + 1

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Algorithm design and problem-solving, O-Level Computer Science (syllabus 2210). Structured question, 9 marks.
Source
O-Level Computer Science, May/June 2022 Paper 2 Variant 2, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep