Question 5(c)(iii) 2013 · October-November · Paper 32 · 4 marks
Reveal official mark-scheme answer

Official answer for Question 5
Part (c)
(iii)
(iii)
BinarySearch (Surname, “Hwang”, 1, 11)
Question 1
Question 11
Question 6
Question 5
Question 3
Question 4
Question 4
Question 4
Question 32
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.
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
Question 16
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
