πŸ“Š Design and Analysis of Algorithms
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
πŸ’¬ Discuss
βœ… Correct 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.


Explanation by: Mr. Dubey
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

πŸ“Š Question Analytics

πŸ‘οΈ
611
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate