Question 7(b) 2012 · May-June · Paper 33 · 3 marks
Reveal official mark-scheme answer

Official answer for Question 7
Part (b)
Part (b)
Identify the source of the interrupt
Question 33
Show text version of question
Question 7
Part (b)
Question 7
MAURITIUS 7
250 250
Part (b)
The following pseudocode uses the linked list to output all country names which are For
alphabetically before a requested country. Examiner's Use For example, the user inputs NEPAL – the pseudocode outputs all the values which are alphabetically before NEPAL.
Fill in the gaps in the pseudocode.
INPUT RequestedValue IF THEN //special case – the list is empty ... OUTPUT “Linked list is empty” ELSE
Current ← HeadPointer REPEAT IF Country[Current] < RequestedValue THEN OUTPUT Country[Current] Current ← ELSE NoMoreValues ← TRUE ENDIF UNTIL NoMoreValues = TRUE
Question 8
Why this question appears here
99% 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_s12_qp_33.pdf
