Question 1(e)(ii) 2014 · October-November · Paper 32 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (e)
(ii)
(ii)
Question 7
Question 1
Question 1
Question 1
Question 3
Show text version of question
Question 1
Part (e)
(ii)
Stack-A has a single pointer TOS which shows the index position available for the next new item to be added (‘pushed’) to the stack.
Queue-B is controlled by two pointers Head and Tail.
The diagram shows Stack-A and Queue-B after two items have been added to each.
Stack-A Queue-B
TOS String-2 Tail String-4 String-1 Head String-3
Stack-A and Queue-B are both initially empty.
Question 5
The sequence of six items of string data:
GOAT CAT SHEEP CHIMP COW HORSE
is stored on Stack-A.
(ii)
Show on the diagram below, the contents of Queue-B and its pointers at this stage
(Stage 2).
Three items are removed from Queue-B and input to Stack-A.
Why this question appears here
71% assigned-topic match · Data types and structures › Introduction to abstract data types
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_w14_qp_32.pdf
