A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Which of the following permutations can be obtained in the output using a stack of size 3 elements assuming that input, sequence is 1, 2, 3, 4, 5 ?
a. 3, 2, 1, 5, 4
b. 5, 4, 3, 2, 1
c. 3, 4, 5, 2, 1
d. 3, 4, 5, 1, 2
Answer:3, 4, 5, 2, 1
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: