Lesson 4.2.2.1

4.2.2.1 Linear, circular and priority queues Quiz: AQA Computer Science, Unit 2

20 questions

In partnership with Revision Ninja

Lesson 4.2.2.1, Linear, circular and priority queues: 20 multiple choice questions for the AQA Computer Science (7517), Unit 2: Fundamentals of data structures, written with Revision Ninja.

Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.

Host this setFree Play

The 20 questions

  1. Which data structure operates on a First-In, First-Out (FIFO) basis?

    • Graph
    • Tree
    • Stack
    • Queue
  2. Which data processing order describes the behaviour of a linear queue?

    • First-in, first-out
    • Last-in, first-out
    • Random order
    • Highest-value first
  3. Which operation is used to add a new item to the rear of a queue?

    • Push
    • Pop
    • Enqueue
    • Dequeue
  4. Which test must be performed before attempting to remove an item from a queue?

    • Test for overflow
    • Test for full
    • Test for empty
    • Test for null
  5. A linear queue has a fixed-size array of 5 places. How many items can it hold at most?

    • 4
    • 5
    • 6
    • 10
  6. What condition occurs if an item is added to a completely full queue?

    • Null pointer error
    • Overflow error
    • Underflow error
    • Syntax error
  7. What main limitation affects a static array-based linear queue as items are added and removed?

    • Data corruption
    • Infinite looping
    • Unusable empty space
    • Stack overflow
  8. How does a circular queue reuse freed space at the start of an array?

    • Wraps pointers around
    • Clears the array
    • Resizes the array
    • Shifts all items
  9. Which item is dequeued first from a priority queue?

    • Last inserted item
    • First inserted item
    • Highest priority item
    • Smallest data size
  10. Items A, B and C are added to a standard queue in that order. Which item is removed first?

    • A
    • C
    • B
    • None
  11. What term describes the error caused by attempting to remove an item from an empty queue?

    • Buffer overflow
    • Queue overflow
    • Queue underflow
    • Stack overflow
  12. In a circular queue of size 8, if front is 6 and 5 items are added, where is rear?

    • Index 7
    • Index 2
    • Index 5
    • Index 6
  13. In what order does a standard print queue process incoming document jobs?

    • Largest file first
    • Order of arrival
    • Reverse arrival order
    • Smallest file first
  14. Which data structure is most commonly used with front and rear pointers to implement a queue?

    • Array
    • Hash table
    • Binary tree
    • Graph
  15. In a hospital emergency room queue, what determines the position of each patient?

    • Urgency level
    • Arrival time
    • Alphabetical name
    • Age order
  16. What error occurs when attempting to add an item to a full linear queue?

    • Underflow
    • Syntax error
    • Overflow
    • Type error
  17. What terms describe the access orders of a queue and a stack respectively?

    • LILO and LIFO
    • FIFO and LIFO
    • LIFO and FIFO
    • FIFO and FILO
  18. How is a circular queue checked to determine whether it is completely full?

    • Check item count
    • Check front pointer
    • Check rear pointer
    • Check top pointer
  19. When a server uses a standard linear queue for task scheduling, in what order are tasks processed?

    • Reverse arrival order
    • Priority order
    • Random order
    • Arrival order
  20. Which pointer is incremented when an item is removed from a linear queue?

    • Front pointer
    • Top pointer
    • Base pointer
    • Rear pointer

All AQA Computer Science quizzes