Back to marketplace

Queues

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

What are queues?

Back (Answer)

Abstract data types that hold ordered linear sequences of items

#2
Front (Question)

What kind of structure do they have?

Back (Answer)

FIFO (first in, first out)

#3
Front (Question)

How do queues keep order?

Back (Answer)

A pointer at the front of the queue which indicates element one and an end pointer.

#4
Front (Question)

What happens to queue when an element is removed?

Back (Answer)

Nothing, he remaining elements do not move up to the front of the queue

#5
Front (Question)

Define a priority queue?

Back (Answer)

A queue where each element has a priority so new elements can be added in front of lower priority ones.

#6
Front (Question)

What does enqueue(data) do?

Back (Answer)

Adds an element to a queue

#7
Front (Question)

What does dequeue() do?

Back (Answer)

Returns an element from the front of the queue

#8
Front (Question)

What does is_empty() do?

Back (Answer)

Check whether the queue is empty

#9
Front (Question)

What does is_full() do?

Back (Answer)

Check whether the queue is at maximum capacity

#10
Front (Question)

What kind of implementation can occur?

Back (Answer)

Static or dynamic

#11
Front (Question)

What are the main operations of a queue?

Back (Answer)

Adding and removing items

#12
Front (Question)

What characteristic does a static array have?

Back (Answer)

A fixed capacity

#13
Front (Question)

How does a circular queue work?

Back (Answer)

Reuses empty slots at the front of the array. When the rear index pointer reaches the last position, it wraps around to point at the start.