Past-paper question · 2011 October-November · Paper 12 · Q5(b)

Question 5(b) 2011 · October-November · Paper 12 · 4 marks

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

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]

Mark scheme 9691_w11_ms_12.pdf →

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

Keep practising this topic