Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · Oct/Nov 2018 · Q57 Marks

The flowchart checks the level of chlorine and the depth of water compared to the height of the swimming pool. Error messages are output if a problem is found.

  1. (a)Complete the trace tables for each set of input data. Input data: 6, 2.5, 2 Height Depth Chlorine OK OUTPUT Input data: 4, 3, 1.5 Height Depth Chlorine OK OUTPUT Input data: 6, 3.5, 4 Height Depth Chlorine OK OUTPUT[6]
  2. (b)Identify a problem with the algorithm that the flowchart represents.[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 (Oct/Nov 2018). The mark or mark type is shown in brackets.

  1. [1] 1 mark for first 4 columns in each trace table (max 3)
  2. [1] 1 mark for the output in each trace table (max 3)
  3. Input 6, 2.5, 2: Height: 6, Depth: 2.5, Chlorine: 2, OK: True, OUTPUT: Pool OK to use
  4. Input 4, 3, 1.5: Height: 4, Depth: 3, Chlorine: 1.5, OK: False, OUTPUT: Water too deep
  5. Input 6, 3.5, 4: Height: 6, Depth: 3.5, Chlorine: 4, OK: False, OUTPUT: Water too deep
  6. [1] Any one from:
  7. [1] Cannot add more water if the water is too deep
  8. [1] No validation e.g. allows a negative height/depth/amount of chlorine
  9. [1] Tells you to add chlorine when there is no water
  10. [1] Runs only once

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, 7 marks.
Source
O-Level Computer Science, Oct/Nov 2018 Paper 2 Variant 2, question 5.

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