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

The flowchart represents an algorithm. The algorithm will terminate if −1 is entered at the List input. [Figure 10.1]

  1. Complete the trace table for the algorithm using this input data: 2, 77, 2, 16, 1, 35, 2, −7, 5, 18, 1, 11, 1, 12, 2, 20, −1, 18 List Value List1 List2 OUTPUT[5]

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

  1. One mark for each correct column
  2. List Value List1 List2 OUTPUT
  3. 0 0
  4. 2
  5. 77 77
  6. 2
  7. 16 93
  8. 1
  9. 35 35
  10. 2
  11. -7 86
  12. 5
  13. Input Error
  14. 1
  15. 11 46
  16. 1
  17. 12 58
  18. 2
  19. 20 106
  20. -1
  21. List 1 = 58
  22. List 2 = 106
  23. List 2 is greatest

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, 5 marks.
Source
O-Level Computer Science, Oct/Nov 2021 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