Past-paper question · 2019 May-June · Paper 42 · Q4(b)(iii)

Question 4(b)(iii) 2019 · May-June · Paper 42 · 1 mark

Original past-paper question for 4(B)(III)
Original past-paper question for 4(B)(III)
Original past-paper question for 4(B)(III)
Original past-paper question for 4(B)(III)
Original past-paper question for 4(B)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 4(B)(III)

Official answer for Question 4

Part (b)

(iii)

✓
Bubble sort

Question 1

Mark scheme 9608_s19_ms_42.pdf →

Show text version of question

Question 4

Part (b)

(iii)

The following is an example of a sorting algorithm. It sorts the data in the array ArrayData.

01 TempValue "" 02 REPEAT 03 Sorted TRUE 04 FOR Count 0 TO 4 05 IF ArrayData[Count] > ArrayData[Count + 1] 06 THEN 07 TempValue ArrayData[Count + 1] 08 ArrayData[Count + 1] ArrayData[Count] 09 ArrayData[Count] TempValue 10 Sorted FALSE 11 ENDIF 12 ENDFOR 13 UNTIL Sorted = TRUE

(iii)

Identify the algorithm shown in part (b).

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

[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_42.pdf

Keep practising this topic