This flowchart represents an algorithm. [Figure 9.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]
- (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.
- [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] 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 →