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

This flowchart inputs the points won and the points lost when playing a game. The difference between the points won and lost is calculated and depending on the result the player can: move up to the next level, stay at the same level, or move down to the previous level. The flowchart finishes when the input for points won is –−1. [Figure 4.1]

  1. (a)Complete a trace table for this set of input data: 5000, 4474, 6055, 2000, 7900, 9800, 3000, 2150, −1, 6700, 7615 | PointsWon | PointsLost | Difference | OUTPUT | |---|---|---|---| | | | | | | | | | | | | | | | | | | | | | | | | |[3]
  2. (b)The flowchart needs to be changed. When the difference is more than 5000 the output message is 'Fantastic leap up two levels'. Describe the changes that will need to be made to the flowchart.[3]

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

  1. [1] All PointsWon and PointsLost inputs correct
  2. [1] All Difference calculations correct
  3. [1] All OUTPUTs correct
  4. | PointsWon | PointsLost | Difference | OUTPUT | |---|---|---|---| | 5000 | 4474 | 526 | Keep on trying | | 6055 | 2000 | 4055 | Well done move up | | 7900 | 9800 | -1900 | Sorry move down | | 3000 | 2150 | 850 | Keep on trying | | -1 | 6700 | | |
  5. [1] Add extra decision box
  6. [1] before checking for difference greater than or equal to 1000
  7. [1] change Is difference >= 1000 to >= 1000 and <= 5000
  8. [1] Check for difference greater than 5000
  9. [1] Add extra Output 'Fantastic leap up two levels'...
  10. [1] before flowline returns to input

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, 6 marks.
Source
O-Level Computer Science, May/June 2020 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