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

This flowchart inputs the marks gained in an examination. An input of –1 ends the routine. [Flowchart Diagram] Complete the trace table for the mark input data: 50, 70, 65, 30, 95, 50, 55, 85, 65, 35, −1, 45

  1. Total | Count | Distinction | Mark | OUTPUT ------|-------|-------------|------|-------------------------- 0 | 0 | 0 | 50 | | | | 70 | | | | 65 | | | | 30 | | | | 95 | | | | 50 | | | | 55 | | | | 85 | | | | 65 | | | | 35 | | | | −1 | | | | 45 |[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 2019). The mark or mark type is shown in brackets.

  1. [4] 1 mark for Total and Count columns both correct.
  2. [4] 1 mark for each correct column apart from Total and Count.
  3. [4] If no marks awarded allow 1 mark for initialisation of Total, Count and Distinction, set to zero.
  4. [4] (Table with correct values showing trace and output) Total | Count | Distinction | Mark | OUTPUT ------|-------|-------------|------|-------------------------- 0 | 0 | 0 | 50 | 50 | 1 | 0 | 70 | 120 | 2 | 0 | 65 | 185 | 3 | 0 | 30 | 215 | 4 | 0 | 95 | 310 | 5 | 1 | 50 | 360 | 6 | 1 | 55 | 415 | 7 | 1 | 85 | 500 | 8 | 2 | 65 | 565 | 9 | 2 | 35 | 600 | 10 | -1 | | Number of Distinctions 2 | | | | Average Mark 60

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, 4 marks.
Source
O-Level Computer Science, May/June 2019 Paper 2 Variant 2, question 3.

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