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

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

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

Official answer for Question 2

Part (f)

(ii)

✓
One from:

Question 1

  • Bubble sort
  • Merge sort
✓
9608/43
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_43.pdf →

Show text version of question

Question 2

Part (f)

(ii)

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

(ii)

State the name of one other sorting algorithm.

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

[1]

Question 17

Topic relevance

Why this question appears here

72% assigned-topic match · Algorithm design and problem-solving › Algorithms

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