Question 3(a) 2023 · October-November · Paper 23 · 0 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
Question 3
Show text version of question
Question 3
Part (a)
Question 3
The diagram represents a queue Abstract Data Type (ADT).
The organisation of this queue may be summarised as follows:
- The FrontOfQueue pointer points to the next data item to be removed.
- The EndOfQueue pointer points to the last data item added.
Queue
D3 ← FrontOfQueue D4
D1
D2
D5 ← EndOfQueue
The queue is implemented using three variables and a 1D array of eight elements as shown. The variable NumItems stores the number of items in the queue.
The pointer variables store indices (index numbers) of the array.
Part (a)
Complete the diagram to represent the state of the queue as shown above.
Index Array
Question 1
Question 2
Question 3
Why this question appears here
71% assigned-topic match · Data types and structures › Arrays
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 9618_w23_qp_23.pdf
