Which of the following programming languages features require a stack-base allocation
pointer
Block-structure
recursion
dynamic scoping
Push down stack or push down list is
stack
queue
linked list
dequeue
Stack is useful for
radix sort
breadth first search
recursion
Heap sort
Stacks can not be used to
evaluate an arithmetic expression in postfix form
implement recursion
convert a given arithmetic expression in infix form to is equivalent postfix form
allocates resources (like CPU) by the operating system
Stack is useful for implementing
radix sort
breadth first search
selection sort
depth first search
Which of the following is useful in implementing quick sort?
stack
set
list
queue
Which of the following is essential for converting an infix expression to postfix form efficiently?
An operator stack
An operand stack
An operator stack and an operand stack
A parse tree
A stack is most suitable to evaluate _ _ _ _ _ expression
postfix
prefix
infix
post & infix
Linear linked data structure is
tree
graph
stack
binary tree
A queue of characters currently contained a,b,c,d. What would be the contents of queue after the following operationDELETE, ADD W, ADD X, DELETE, ADD Y
A,B,C,W,Y
C,D,W,X,Y
W,Y,X,C,D
A,B,C,D,W
Which of the following data structure is suitable for priority queue?
Doubly linked list
Circular queues
Binary search
Heaps
For storing the sorted data on which often insert and deletion operations are performed, the following data structure is better
Array
queue
linked-list
doubly linked-list
A circular queue of size N will sign queue full when the number of elements in the queue is
N-1
N
N+1
N-2
The postfix equivalent of the prefix * + a b – c d is
ab + cd – *
ab cd + – *
ab + cd * –
ab + – cd *
The postfix expression for the infix expressionA + B* (C+D) / F + D*E is:
AB + CD + F / D + E*
ABCD + * F / + DE*
A*B + CD / F*DE ++
A+ BCD / F* DE ++
A telephone system which places cells to a particular number on hold can best represented by
queue
stack
linked-list
variable
The performance of an algorithm is specified by the following notation that represents the worst case
O-notation
Omega notation
Theta notation
alpha-notation
If front=rear ,then the queue is
full
empty
unknown value
1/2 full
Reverse polish expression is
Infix
postfix
prefix
post & prefix
A list of integers is read in, one at a time, and a binary search tree is constructed. Next the tree is traversed and the integers are printed. Which traversed would result in a printout which duplicates the original order of the list of integers?
pre-order
post-order
in-order
in-fix order
The postfix expression for the infix expression A + B* (C+D) / F + D*E is
AB + CD + * F/D + E *
ABCD + *F / + DE* +
A*B + CD / F*DE ++
A + *BCD / F*DE ++
The equivalent of (a+b↑c↑d)*(e+f/d) in the post fix notation is
ab+c↑d↑e &fd/
abcd↑+↑efd/+*
abcdefd/+*↑↑+
abcd↑↑+efd/+*
The infix form of the postfix expression ABC-/D*E+ is
A/B-C*D+E
A-B/C*D+E
(A-B)/C*D+E
A/(B-C)*D+E
The postfix expression for the infix expression A/B*C+D*E is
AB/C*DE*+
ABC/*DE+*
ABCD/*E+*
ABC*/D*E+
The prefix expression for the infix expressionA/B*C+D*E is
AB/C*DE*+
+*/ABC*DE
+*AB/C*DE
/+ABCDE
Suffix expression is
Infix
postfix
prefix
post & prefix
polish expression is
infix
postfix
prefix
post & prefix
To convert an Infix expression into postfix we require
stack
queue
linked list
dequeue
A stack is most suitable to evaluate _ _ _ _ _ _ _ expression
postfix
prefix
infix
post & infix
The circular linked list have
no beginning
no ending
beginning but no ending
no beginning and no ending
To insert a node at the beginning of the doubly linked list _ _ _ _ _ _ _ _ no. of pointers to be manipulated