Data Structures

1:

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 : A

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.