Question 2
AQA Computer Science June 2024 Paper 1 (7517/1)A level7 marks
On the specification
- 2.1
- 4.2 Fundamentals of data structures
- 2.2
- 4.2 Fundamentals of data structures
Question text
2 Circular queues and linear queues are examples of data structures that can be implemented using a fixed-length array. 2.1 Explain why, when implemented using a fixed-length array, a circular queue is usually considered to be a better choice of data structure than a linear queue. [2 marks] 2.2 Describe the steps that must be completed to remove (dequeue) an item from a circular queue that has been implemented using a fixed-length array. [5 marks]