Past-paper question · 2015 May-June · Paper 42 · Q5(a)(ii)

Question 5(a)(ii) 2015 · May-June · Paper 42 · 3 marks

Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Reveal official mark-scheme answer

Official answer for Question 5

Part (a)

(ii)

✓
The outer loop (FOR loop) is executed 9 times (1 mark)
✓
it is not dependant on the dataset (1 mark)
✓
The Inner loop (WHILE loop) is not entered (1 mark)
✓
as the condition is already false at the first encounter (1 mark) [max 3]

Mark scheme 9608_s15_ms_42.pdf →

Show text version of question

Question 5

Part (a)

(ii)

Question 5

Data is stored in the array NameList[1:10]. This data is to be sorted.

(ii)

A special case is when NameList is already in order. The algorithm in part (a)(i) is

applied to this special case.

Explain how many iterations are carried out for each of the loops.

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

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

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

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

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

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

[3]

Question 11

Topic relevance

Why this question appears here

71% 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_s15_qp_42.pdf

Keep practising this topic