Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/21 · May/June 2025 · Q107 Marks

The flowchart represents an algorithm to calculate grades. [Figure showing flowchart]

  1. (a)Complete the trace table for the algorithm, using the input data: 21, 46, 63, 91, 12 Score Grade OUTPUT[3]
  2. (b)Explain how the flowchart can be changed to produce the correct output.[4]

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 2025). The mark or mark type is shown in brackets.

  1. [3] (a) One mark for each correct column Score Grade OUTPUT 21 D You achieved a D 46 C You achieved a C 63 C You achieved a C 91 C You achieved a C 12 D You achieved a D Candidates can be awarded all three marks if they have provided only the correct first row.
  2. [1] (b) Change the decision in the first decision box to IS Score >= 80 ?
  3. [1] (b) Change the decision in the last decision box to IS Score >= 40 ?
  4. [1] (b) Change process box from Grade ← "C" to Grade ← "A"
  5. [1] (b) Change process box from Grade ← "A" to Grade ← "C"
  6. [1] (b) Add output box instructing users to input score or input -1 before the input box // initialising a counter // incrementing counter.
  7. [1] (b) Add decision box for loop with exit condition.
  8. [1] (b) Correct arrows to show looping

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, May/June 2025 Paper 2 Variant 1, question 10.

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