Stack Operations - Section 3 Multiple Questions and Answers.




31.If the sequence of operations -

push(1)
push(2)
pop
push(1)
push(2)
pop
pop
pop
push(2)
pop

are performed on a stack, the sequence of popped out values are ?

A. 2 2 1 2 2
B. 2 2 1 1 2
C. 2 1 2 2 1
D. 2 1 2 2 2

32.Adding element to stack means ___________.
A. Placing element at the rear end
B. Placing element at the front end
C. Placing element at the top
D. None of these

«



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers