Question: 31
(Choose 1 answer)
In a stack implementation, what is the primary difference between the "pop" and "peek" operations?
A. "Pop" removes the top element, while "peek" only returns its value.
B. "Peek" removes the top element, while "pop" only returns its value.
C. Both "pop" and "peek" remove the top element but have different return values.
D. Both "pop" and "peek" return the top element but have different removal behaviors.