Past-paper question · 2018 May-June · Paper 42 · Q3(c)(ii)

Question 3(c)(ii) 2018 · May-June · Paper 42 · 4 marks

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

Official answer for Question 3

Part (c)

(ii)

Question 1

mark per bullet to max 4. Max 2 marks if no relation to CardData values.

Question 4

✓
•
✓
Find mid-point and comparison // 25 is smaller than/compared to 52/56
✓
•
✓
Discard/ignore greater // change upper bound to 33/52/midpoint - 1 //e.g. right hand side // only use array elements
✓
1 - 4/5
✓
•
✓
Find and compare to mid-point of new list e.g. 12/25
✓
•
✓
Value is the midpoint // Continue until value found
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s18_ms_42.pdf →

Show text version of question

Question 3

Part (c)

(ii)

Question 3

The arrays PollData[1:10] and CardData[1:10] store data.

PollData 12 85 52 57 25 11 33 59 56 91

CardData 11 12 25 33 52 56 57 59 91 85

An insertion sort sorts these data.

(ii)

The current contents of CardData are shown.

Explain how a binary search will find the value 25 in CardData.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.......................................................................................................................................[4]

Question 10

Topic relevance

Why this question appears here

86% 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_s18_qp_42.pdf

Keep practising this topic