Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2016 July – II | Question 22

View Discussion
Improve Article
Save Article
  • Last Updated : 19 Apr, 2018
View Discussion
Improve Article
Save Article

Consider the following operations performed on a stack of size 5 :
Push (a); Pop() ; Push(b); Push(c); Pop();
Push(d); Pop();Pop(); Push (e)
Which of the following statements is correct?
(A) Underflow occurs
(B) Stack operations are performed smoothly
(C) Overflow occurs
(D) None of the above

Answer: (B)

Explanation: 22 (2)
All Stack operations are performed smoothly.
So, option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!