Past-paper question · 2012 May-June · Paper 33 · Q7(b)

Question 7(b) 2012 · May-June · Paper 33 · 3 marks

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

Official answer for Question 7

Part (b)

Part (b)

Identify the source of the interrupt

✓
Disable all interrupts of a lower priority
✓
Save the contents of the PC
✓
Save the contents of the other registers ...
✓
Onto the stack
✓
Load and run the appropriate ISR code
✓
Restore the registers
✓
From the stack (stack mentioned 1 mark only ...)
✓
Enable all interrupts
✓
Continue execution of the interrupted process
✓
[MAX 6]
✓
© University of Cambridge International Examinations 2012
✓
Mark Scheme: Teachers’ version
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2012
✓
9691

Question 33

Mark scheme 9691_s12_ms_33.pdf →

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

[3]

Question 8

Topic relevance

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

Keep practising this topic