Past-paper question · 2019 May-June · Paper 43 · Q2(f)(i)

Question 2(f)(i) 2019 · May-June · Paper 43 · 1 mark

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

Official answer for Question 2

Part (f)

(i)

✓
Insertion sort

Question 1

Mark scheme 9608_s19_ms_43.pdf →

Show text version of question

Question 2

Part (f)

(i)

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

(i)

Give the name of this algorithm.

.....................................................................................................................................

[1]
Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Constructs

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_43.pdf

Keep practising this topic