Past-paper question · 2016 May-June · Paper 33 · Q5(a)(ii)

Question 5(a)(ii) 2016 · May-June · Paper 33 · 6 marks

Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 5(A)(II)

Official answer for Question 5

Part (a)

(ii)

(ii)

Max[6]

✓
INPUT SearchItem
✓
IsFound FALSE
✓
i 1
✓
REPEAT
✓
IF MyList[i] = SearchItem
✓
THEN
✓
IsFound TRUE and initialised earlier
✓
OUTPUT "FOUND at position", I
✓
ELSE
✓
i i + 1 and initialised earlier
✓
UNTIL (IsFound = TRUE) OR i = 7
✓
IF IsFound = FALSE
✓
THEN
✓
OUTPUT "Item was NOT FOUND"
✓
ENDIF

Mark scheme 9691_s16_ms_33.pdf →

Show text version of question

Question 5

Part (a)

(ii)

Question 5

A program will use the following array MyList with the integers shown:

MyList 1 2 3 4 5 6 7

A
sequential search algorithm is to be coded to find the number input by a user.

(ii)

Write pseudocode for this search.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.......................................................................................................................................[6]

Question 15

Topic relevance

Why this question appears here

72% 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 9691_s16_qp_33.pdf

Keep practising this topic