Past-paper question · 2013 October-November · Paper 31 · Q5(c)
Question 5(c) 2013 · October-November · Paper 31 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (c)
Part (c)
PROCEDURE PopJob
✓
IF TopOfStack = –1
[1]
✓
THEN
✓
OUTPUT “There are no print jobs waiting”
[1]
✓
ELSE
✓
PROCESS SpoolJob[TopOfStack]
✓
TopOfStack ← TopOfStack – 1
[1]
✓
ENDIF
✓
ENDPROCEDURE
Show text version of question
Question 5
Part (c)
Part (c)
Processing a print job is to be implemented with a PopJob procedure.
Complete the pseudocode for this PopJob procedure.
PROCEDURE PopJob
IF TopOfStack =
THEN
OUTPUT " "
ELSE
PROCESS SpoolJob[TopOfStack]
ENDIF
ENDPROCEDURE
[3]
Question 14
Topic relevance
Why this question appears here
71% 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_w13_qp_31.pdf
