Menu

Stacks Questions

MCQ
111.
Stack is useful for implemeting
forum Discussion
MCQ
112.
An item that is read as input can be either pushed to a stack and later popped and printed, or printed directly. Which of the following will be the output if the input is the sequence of items 1, 2, 3
forum Discussion
MCQ
113.
Process of inserting an element in stack is called ____________
forum Discussion
MCQ
114.
Process of removing an element from stack is called __________
forum Discussion
MCQ
115.
In a stack, if a user tries to remove an element from empty stack it is called _________
forum Discussion
MCQ
116.
Pushing an element into stack already having five elements and stack size of 5 , then stack becomes
forum Discussion
MCQ
117.
Entries in a stack are
forum Discussion
MCQ
118.
Which of the following applications may use a stack?
forum Discussion
MCQ
119.
Consider the usual algorithm for determining whether a sequence of parentheses is balanced.The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(())) are:
forum Discussion
MCQ
120.
Consider the usual algorithm for determining whether a sequence of parentheses is balanced.
Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order).

The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?
forum Discussion