Past-paper question · 2011 October-November · Paper 31 · Q8(b)

Question 8(b) 2011 · October-November · Paper 31 · 4 marks
Reveal official mark-scheme answer

Official answer for Question 8
Part (b)
Part (b)
-Return address is stored on stack (before control passed to procedure)
- Values of parameters are placed on stack
- Procedure will read same number of values from stack as parameters it was expecting
- Address can be read from stack and placed in PC
- Nested calls to procedures will be unwound in correct order
- Problems if too many nested calls (unending recursive function) // stack overflow
✓
(1 per -, max 4)
[4]
✓
© University of Cambridge International Examinations 2011
✓
Mark Scheme: Teachers’ version
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – October/November 2011
✓
9691
Question 31
Show text version of question
Question 8
Part (b)
Part (b)
Explain how a stack is used to handle procedure calling and parameter passing.
[4]
Question 11
Topic relevance
Why this question appears here
71% assigned-topic match · Programming › Structured programming
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_w11_qp_31.pdf
