Exam-style question
Try this first
Which operation adds a new value to the top of a stack?.
- A.push
- B.pop
- C.peek
- 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.
