Past-paper question · 2019 May-June · Paper 41 · Q2(f)(iii)

Question 2(f)(iii) 2019 · May-June · Paper 41 · 7 marks

Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Original past-paper question for 2(F)(III)
Reveal official mark-scheme answer

Official answer for Question 2

Part (f)

(iii)

Question 1

mark per shaded section

Question 7

✓
ArrayData
✓
Item
✓
NumberOfScores
✓
InsertScore
✓
Index
✓
0

Question 1

Question 2

Question 3

Question 4

Question 1

Question 5

✓
125
✓
0
✓
(125)

Question 2

✓
121

Question 1

✓
125
✓
0
✓
121

Question 3

✓
109

Question 2

✓
125

Question 1

✓
121
✓
0
✓
109

Question 4

✓
115

Question 3

✓
125

Question 2

✓
121

Question 1

✓
115
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_41.pdf →

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.

A
selection of score data is as follows:

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

[7]

Question 18

Topic relevance

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

Keep practising this topic