Question 2(f)(iii) 2019 · May-June · Paper 41 · 7 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (f)
(iii)
Question 1
mark per shaded section
Question 7
Question 1
Question 2
Question 3
Question 4
Question 1
Question 5
Question 2
Question 1
Question 3
Question 2
Question 1
Question 4
Question 3
Question 2
Question 1
Show text version of question
Question 2
Part (f)
(iii)
Question 2
A computer games club wants to run a competition. The club needs a system to store the scores
achieved in the competition.
In part (b), the club stored scores in a 1D array. This allows the club to sort the scores.
The following is a sorting algorithm in pseudocode.
NumberOfScores ← 5
FOR Item ← 1 TO NumberOfScores – 1
InsertScore ← ArrayData[Item]
Index ← Item – 1
WHILE (ArrayData[Index] > InsertScore) AND (Index >= 0)
ArrayData[Index + 1] ← ArrayData[Index]
Index ← Index – 1
ENDWHILE
ArrayData[Index + 1] ← InsertScore
ENDFOR
(iii)
Complete a dry run of the algorithm using the following trace table.
ArrayData Item NumberOfScores InsertScore Index 0 1 2 3 4
Question 18
Why this question appears here
71% assigned-topic match · Software development › Program testing and maintenance
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_s19_qp_41.pdf
