Past-paper question · 2016 October-November · Paper 41 · Q2(b)(ii)

Question 2(b)(ii) 2016 · October-November · Paper 41 · 2 marks

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

Official answer for Question 2

Part (b)

(ii)

(ii)

✓
Logic error
✓
Logic error
✓
Logic error
[1]
✓
11 return(Index)
✓
14 Result := Index;
✓
14 BinarySearch = Index
[1]

Mark scheme 9608_w16_ms_41.pdf →

Show text version of question

Question 2

Part (b)

(ii)

Question 2

Circle the programming language that you have studied:

Visual Basic (console mode) Python Pascal Delphi (console mode)

(ii)

A programmer corrects the syntax error and tests the function. It does not perform as

expected when the search item is not in the list.

State the type of error: .......................................................................................................

Write down the line number where the error occurs.

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

Write the correct code for this line.

.......................................................................................................................................[2]

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

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

Keep practising this topic