[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Data Structures :: Stacks - Discussion

Home > Data Structures > Stacks > MCQs Questions Discussion

23 / 93

Choose the correct option.

Let ' s' be a stack and push and pop be functions implementing the Insertion and Deletion operations in a Stack. push takes 2 parameters: the stack and the element to be inserted , pop takes a single parameter: the stack. What will be the contents of the stack after the following operations: push(s,A), push(s,B), push(s,C), pop(s), pop(s), push(s, D), push (s, E), pop(s) ?

AA D

BD E

CC E

DA E

Answer: Option (Login/Signup)

Show Explanation

  • B DE

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here