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

This flowchart represents an algorithm. [Figure showing a flowchart] (a) The array List[1:5] used in the flowchart contains this data: List[1] 15 List[2] 17 List[3] 20 List[4] 5 List[5] 9

  1. (a)Complete the trace table using the data given in the array. [Blank trace table with columns A, B, List[1], List[2], List[3], List[4], List[5], T and initial row values][5]
  2. (b)Describe what the algorithm represented by the flowchart is doing.[2]

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

  1. One mark for each of columns A, B and T
  2. Two marks for columns List[1] to List [5] all entries correct or
  3. One mark for columns List[1] to List[5] with one error
  4. A B List[1] List[2] List[3] List[4] List[5] T
  5. 1 15 17 20 5 9
  6. FALSE 1 17 15 15
  7. TRUE 2 20 15 15
  8. TRUE 3
  9. TRUE 4 9 5 5
  10. 5
  11. FALSE 1 20 17 17
  12. TRUE 2
  13. 3
  14. 4
  15. 5
  16. FALSE 1
  17. 2
  18. 3
  19. 4
  20. 5
  21. One mark for each point
  22. MP1 (bubble) sort data in array
  23. MP2 in descending order

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 2024 Paper 2 Variant 2, question 9.

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