Past-paper question · 2018 October-November · Paper 42 · Q3(b)(ii)

Question 3(b)(ii) 2018 · October-November · Paper 42 · 1 mark

Original past-paper question for 3(B)(II)
Original past-paper question for 3(B)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)(II)

Official answer for Question 3

Part (b)

(ii)

✓
Line 03

Question 1

✓
Change the operator in the IF statement to < or <= rather than >

Mark scheme 9608_w18_ms_42.pdf →

Show text version of question

Question 3

Part (b)

(ii)

Question 3

A bubble sort algorithm is used to sort an integer array, List. This algorithm can process arrays

of different lengths.

(ii)

State which line of the algorithm you would change to sort the array into the opposite

order.

State the change you would make.

Line ...................................................................................................................................

Change ..............................................................................................................................

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

[1]

Question 7

Topic relevance

Why this question appears here

76% assigned-topic match · Data types and structures › Arrays

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

Keep practising this topic