Note AcademyNote Academy

Computer Science (AS & A Level) · May / June 2025 · Paper 41 · Question 1

9618

As printed in the paper

The question as text

A program stores positive integers in a circular queue. The queue is stored as a global 1D array of 20 integers with the identifier Queue. Each index is initialised with the data –1 The global variable HeadPointer, initialised to –1, points to the first element in the queue. The global variable TailPointer, initialised to –1, points to the last element in the queue. The global variable NumberItems, initialised to 0, stores the number of items in the queue.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 1(a)[2]

  • 1(b)[6]

  • 1(c)[3]

  • 1(d)[6]

  • 1(e)(i)[2]

  • 1(e)(ii)[1]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.