logo

AQA A-Level Computer Science practice

Which operation adds a new value to the top of a stack?

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

Which operation adds a new value to the top of a stack?.

  1. A.push
  2. B.pop
  3. C.peek
  4. D.test for empty

Answer and explanation

Concise answer

push

Why this is correct

The push operation adds a value to the top of the stack.

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