Stack MCQ : Miscellaneous Questions ( Multiple Choice)
Question 1 |
What will be the postfix form of the above expression -
(A+B)∗(C∗D-E)∗F/G
A B + C D ∗ E − F G ∗ / ∗ | |
A B + C D ∗ E − F G / ∗ ∗ | |
A B + C D E ∗ − F G / ∗ ∗ | |
None of these |
Question 2 |
If the sequence of operations -
push(1) push(2) pop push(1) push(2) pop pop pop push(2) popare performed on a stack, the sequence of popped out values are ?
2 2 1 2 2 | |
2 2 1 1 2 | |
2 1 2 2 2 | |
2 1 2 2 1 |
Question 3 |
Stack cannot be used to -
Implementation of Recursion | |
Reversing String | |
Evaluation of Expression in Postfix form | |
Allocating Resources and Scheduling |
Question 4 |
Expression
1 * 2 ^ 3 * 4 ^ 5 * 6is evaluated as -
173458 | |
162^30 | |
32^30 | |
49152 |
Question 5 |
Which of the following is useful in the implementation of quick sort ?
Stack | |
Queue | |
Set | |
List |
There are 5 questions to complete.