Question 6(a) 2015 · May-June · Paper 42 · 3 marks
Reveal official mark-scheme answer

Official answer for Question 6
Part (a)
Part (a)
Show text version of question
Question 6
Part (a)
Question 6
A queue Abstract Data Type (ADT) has these associated operations:
- create queue
- add item to queue
- remove item from queue
The queue ADT is to be implemented as a linked list of nodes.
Each node consists of data and a pointer to the next node.
Part (a)
The following operations are carried out:
CreateQueue AddName("Ali") AddName("Jack") AddName("Ben") AddName("Ahmed") RemoveName AddName("Jatinder") RemoveName
Add appropriate labels to the diagram to show the final state of the queue. Use the space on the left as a workspace. Show your final answer in the node shapes on the right:
Question 14
Why this question appears here
99% 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 9608_s15_qp_42.pdf
