Past-paper question · 2013 October-November · Paper 32 · Q5(c)(iii)

Question 5(c)(iii) 2013 · October-November · Paper 32 · 4 marks

Original past-paper question for 5(C)(III)
Original past-paper question for 5(C)(III)
Original past-paper question for 5(C)(III)
Original past-paper question for 5(C)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 5(C)(III)Official mark-scheme answer for 5(C)(III)

Official answer for Question 5

Part (c)

(iii)

(iii)

BinarySearch (Surname, “Hwang”, 1, 11)

✓
Low
✓
High
✓
Middle
✓
RETURNS ...

Question 1

Question 11

Question 6

✓
(1)

Question 5

Question 3

Question 4

Question 4

✓
(5)

Question 4

[4]
✓
[Total: 14]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – October/November 2013
✓
9691

Question 32

Mark scheme 9691_w13_ms_32.pdf →

Show text version of question

Question 5

Part (c)

(iii)

Question 5

Customer names are stored in the array Customer. For

Examiner's Use An algorithm is to be designed to perform a serial search of the array for a requested customer name.

The algorithm will use the variables shown in the table.

A
binary search may be an alternative algorithm to a serial search. For

Examiner's Use

(iii)

A binary search is carried out on the data in the Surname array shown. For

Examiner's Surname Use

1 Ban 2 Chae 3 Dang 4 Hwang 5 Jeong 6 Jin 7 Jo 8 Ju 9 Ma 10 So 11 Song

Complete the trace table below for the following function call:

BinarySearch(Surname, "Hwang", 1, 11)

Low High Middle RETURN

1 11

[4]

Question 16

Topic relevance

Why this question appears here

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

Keep practising this topic