Stacks and Queues Mcqs
Our collections of Multiple choice questions and answers focuses on study of ” Stacks and Queues ” in Data Structures. These questions are chosen from a collection of most authoritative and best reference books on Data Structures. Our aim is to prepare an individual for competitive exams like NTS | GAT | ECAT | Data Warehouse jobs | Data Mining | DB administration jobs Software House and Computer Programmer jobs | University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate knowledge on Stacks and Queues comprehensively.
32. Convert the following infix expression to postfix expression -B * C – C + D / A / ( E + E )
B C * C - D A / E E + / +
B C C * - D A / E E + / +
B C C - * D A / E E + / +
B C C - * D / A E E + / +
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
33. Convert the following Infix expression to Postfix form using a stackx + y * z + (p * q + r) * s, Follow usual precedence rule and assume that the expression is legal.
Xyz*+pq*r+s*+
Xyz*+pq*r+s+*
Xyz+*pq*r+s*+
None of the mentioned
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
34. Convert the following infix expressions into its equivalent postfix expressions(A + B ⋀D)/(E – F)+G
(A B D ⋀ + E F – / G +)
(A B D +⋀ E F – / G +)
(A B D ⋀ + E F/- G +)
None of the mentioned
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
35. Data Structure required to evaluate infix to postfix is __________.
Pointer
Heap
Stack
Queue
36. Entries in a stack are “ordered”. What is the meaning of this statement?
A collection of stacks is sortable
Stack entries may be compared with the ‘<‘ operation ‘>
The entries are stored in a linked list
There is a Sequential entry that is one by one
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
37. Evaluate Postfix expression from given infix expression.A + B * (C + D) / F + D * E
AB+CD*F/+D*E
ABCD+*F/+DE*+
ABCD+*/F+DE*
AB+CD*F/+DE*
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
38. Express -15 as a 6-bit signed binary number.
001111
101111
101110
001110
39. Expression in which Operator is written after Operand is called as ________.
Infix Expression
Postfix Expression
Prefix Expression
None of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
40. Expression1 * 2 ^ 3 * 4 ^ 5 * 6is evaluated as –
32^30
173458
162^30
49152
41. Following sequence of operations is performed on a stack push(1),push(2),pop, push(1),push(2)pop,pop,pop,push(2),pop.The sequence of poped out values are
2,1,2,2,1
2,1,2,2,2
2,2,1,1,2
2,2,1,2,2
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
42. For every matching parenthesis, print their indices.
A
B
C
D
43. Given below is the Node class to perform basic list operations and a Stack class with a no arg constructor. Select from the options the appropriate push() operation that can be included in the Stack class. Also ‘first’ is the top-of-the-stack.
A
B
C
D
44. Given below is the Node class to perform basic list operations and a Stack class with a no arg constructor.Select from the options the appropriate pop() operation that can be included in the Stack class. Also ‘first’ is the top-of-the-stack.
A
B
C
D
45. Here is an infix expression: 4 + 3*(6*3-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation.The maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?
1
2
3
4