Exam-style question
Try this first
Which operation removes an item from a stack?.
- A.Enqueue
- B.Dequeue
- C.Push
- D.Pop
Model answer
What a good answer should say
- Pop
Explanation
Why this works
Pop removes the item at the top of a stack. Push adds an item to the top.
Enqueue and dequeue are associated with queues.
Common mistake
No common mistake is linked to this question yet.
