Past-paper question · 2006 May-June · Paper 3 · Q8(b)(ii)

Question 8(b)(ii) 2006 · May-June · Paper 3 · 5 marks

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

Official answer for Question 8

Part (b)

(ii)

(ii)

must be a serial search. Whatever form candidate chooses.

✓
Mark points:
  • set COUNTER to 0/1
  • compare Array(COUNTER) with X
  • if equal then report found and value of COUNTER, End
  • if Array(COUNTER) is empty then report error, not found
  • else increment COUNTER
  • if Counter > 999/1000 then report error, not found
  • else repeat from second point
[5]
✓
(1 per -, max 5)

Mark scheme 9691_s06_ms_3.pdf →

Show text version of question

Question 8

Part (b)

(ii)

A
list of the names of students in a college is stored in an array of size 1000. The names are

stored in no logical order, simply in the order that they were input to the array.

(ii)

In whatever form you choose, describe an algorithm for finding the location in the array

of a specific name ‘X’, using a serial search.

[5]
Topic relevance

Why this question appears here

82% 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 9691_s06_qp_3.pdf

Keep practising this topic