logo

AQA A-Level Computer Science practice

A stack has reached its maximum capacity. Which test should be made before attempting to add another value?

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

At a glance

MCQ

Type

practice

Style

Topic

Stacks

Exam-style question

Try this first

A stack has reached its maximum capacity. Which test should be made before attempting to add another value?.

  1. A.Test for stack full
  2. B.Test for empty stack
  3. C.Peek at the bottom element
  4. D.Pop the top value

Answer and explanation

Concise answer

Test for stack full

Why this is correct

The test for stack full determines whether the stack has reached its maximum capacity before another value is pushed.

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