Menu

Stacks Questions

MCQ
41.
When a stack is organized as an array, a variable named Top is used to point to the top element of the stack. Initially, the value of Top is set to_______to indicate an empty stack.
forum Discussion
MCQ
42.
What happens when the stack is full and there is no space for a new element, and an attempt is made to push a new element?
forum Discussion
MCQ
43.
The total number of elements in a stack at a given point of time can be calculated from the value of______.
forum Discussion
MCQ
44.
Jan Lukasiewicz, who suggested two alternative notations to represent an arithmetic expression belonged to which nationality?
forum Discussion
MCQ
45.
In a computer system, when an __________ expression in an infix notation needs to be evaluated, it is first converted into its postfix notation?
forum Discussion
MCQ
46.
The postfix form of the following infix notation is : (A + B)* (C*D − E)* F
forum Discussion
MCQ
47.
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 ?
forum Discussion
MCQ
48.
In conversion from prefix to postfix using stack data-structure, if operators and operands are pushed and popped exactly once, then the run-time complexity is ............
forum Discussion
MCQ
49.
The result of evaluating the following postfix expression is5, 7, 9, *, +, 4, 9, 3, /, +, -
forum Discussion
MCQ
50.
An infix expression can be converted to a postfix expression using a .................
forum Discussion