Queues and Stacks (AQA A-Level Computer Science): Quizzes

📚Quizzes
Queues and Stacks
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

10 questions from this quiz

Show

What is an abstract data type?

A theoretical structure built by programmers

Which principle do stacks follow?

LIFO (Last In First Out)

What is the operation called when you view the top stack item without removing it?

Peeking

What error occurs when you try to pop from an empty stack?

Stack underflow

What happens to the stack pointer when you push an item?

It moves up to the new top element

Which application uses stacks to store return addresses?

Function calls (stack frames)

Which principle do queues follow?

FIFO (First In First Out)

What advantage does a circular queue have over a linear queue?

Reuses freed memory at the front

In a circular queue, what happens when the rear pointer reaches the array end?

It wraps around to position 0

In priority queue Method 1, which operation is more complex?

Removing items

Join 100,000+ A-Level students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.