Past-paper question · 2011 October-November · Paper 12 · Q5(b)
Question 5(b) 2011 · October-November · Paper 12 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (b)
Part (b)
– dimension an array
- Data input to the stack is placed at pointer/on top
- Pointer reset to top of stack/incremented
- Data read from stack is read from top of stack
- Pointer is decremented
- Check always made for stack full/empty
- stack is LIFO structure
- Example of a LIFO structure
✓
(1 per –, max 4, accept all points if shown on diagrams)
[4]
Show text version of question
Question 5
Part (b)
Part (b)
Describe how a stack is implemented using an array.
[4]
Question 6
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_w11_qp_12.pdf
