Q31.webp
pink_happiness

Q31.webp

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.

Thông tin

Category
CSD203
Thêm bởi
pink_happiness
Ngày thêm
Lượt xem
582
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom