logo

AQA A-Level Computer Science practice

What does an empty-queue test determine?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Queues

Exam-style question

Try this first

What does an empty-queue test determine?.

  1. A.Whether the queue contains no items
  2. B.Whether the queue contains its maximum number of items
  3. C.Whether the rear is before the front
  4. D.Whether the next item has high priority

Answer and explanation

Concise answer

Whether the queue contains no items

Why this is correct

Testing for an empty queue prevents an attempt to remove an item when there are no items available.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions