Stack Operations - Section 2 :: Discussion


15.Using Pop (S1,Item) ,Push(S1, Item), Getlist(Item), Pop(S2,Item), and the variables S1,S2(stacks with Top1 and Top2) and Item and given the input file: A,B,C,D,E,F Which stack are possible?
A.All possible stacks with A,B,C,D,E and F
B.No possible stacks with A,B,C,D,E and F
C.Exact and only those stacks which can be produced with S1 alone
D.Twice as many stacks as can be produced with S1 alone
Answer:  Option  A
Explanation:

Tutorial Link:
Published by:Kiran Manzoor

Comments are not available

Post your comments here:

Optional

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