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

This flowchart represents an algorithm. [Figure 9.1]

  1. (a)The array X[1:5] used in the flowchart contains this data: X[1] X[2] X[3] X[4] X[5] 10 1 5 7 11 Complete the trace table by using the data given in the array. F C X[1] X[2] X[3] X[4] X[5] T 10 1 5 7 11[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 2023). The mark or mark type is shown in brackets.

  1. [5] One mark for each column F, C and T Two marks for columns X[1] to X[5] all entries correct or One mark for columns X[1] to X[5] with one error F C X[1] X[2] X[3] X[4] X[5] T 10 1 5 7 11 0 1 10 1 2 1 10 10 1 3 5 10 10 1 4 7 10 5 0 1 2 3 4 5
  2. [2] One mark for each point • (bubble) sort data in array • in ascending 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 2023 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