Wednesday, 22 August 2012

Data Structure Multiple Choice Questions And Answers - Set 2

Data Structure Multiple choice and objective type questions.1) 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 ? 2, 2, 1, 1, 22, 2, 1, 2, 22, 1, 2, 2, 12, 1, 2, 2, 2Show/Hide Answer Answer = AExplanation: The elements are popped from the top of the stack.2) Queue can be used to

No comments:

Post a Comment