Past-paper question · 2023 October-November · Paper 23 · Q3(a)

Question 3(a) 2023 · October-November · Paper 23 · 0 marks

Original past-paper question for 3(A)
Original past-paper question for 3(A)
Reveal official mark-scheme answer Official mark-scheme answer for 3(A)

Official answer for Question 3

Part (a)

Question 3

✓
:
✓
MP1 D3, D4, D1, D2 and D5 in question order or reversed - in any five
✓
consecutive locations
✓
MP2 FoQ value matches index with D3
✓
MP3 EoQ value matches index with D5

Mark scheme 9618_w23_ms_23.pdf →

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

Topic relevance

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

Keep practising this topic