Q.

Which of the following statement is true about stack?

A. pop operation removes the top most element
B. pop operation removes the bottom most element
C. push operation adds new element at the bottom
D. push operation removes the top most element
Answer» A. pop operation removes the top most element
Explanation: as stack is based on lifo(last in first out) principle so the deletion takes place from the topmost element. thus pop operator removes topmost element.

Discussion

No comments yet