Stack MCQ : Infix to Postfix Conversion (Multiple Choice Questions)
Question 1 |
What will be the postfix expression for following infix expression
b * c + d / e
bcd*e/+ | |
bc*de+/ | |
b*cde/+ | |
bc*de/+ |
Question 1 Explanation:
Detail Explanation : Click here to See Solved Example
A. Infix Expression :
b * c + d / eSteps of Conversion :
Ch Stack Output --------------------------------------- b b * * b c * bc + + bc* d + bc*d / +/ bc*d e +/ bc*de # bc*de/+Postfix Expression is :
b c * d e / +
Question 2 |
What will be the postfix expression for following infix expression -
A / B ^ C - D
A B C ^ / D - | |
A B ^ / C D - | |
A B / ^ C D - | |
A B C / ^ D - |
Question 2 Explanation:
Detail Explanation : Click here to See Solved Example
A. Infix Expression :
A / B ^ C - DSteps of Conversion :
Ch Stack Output ---------------------------------- A A / / A B / AB ^ /^ AB C /^ ABC - - ABC^/ D - ABC^/D # ABC^/D-Postfix Expression is :
A B C ^ / D -
Question 3 |
What will be the postfix expression for following infix expression -
A + B * C ^ D
ABCD^*+ | |
ABCD*+^ | |
ABC+D*^ | |
ABCD+*^ |
Question 4 |
Evaluate Postfix expression from given infix expression.
A + B * (C + D) / F + D * E
ABCD+*/F+DE* | |
ABCD+*F/+DE*+ | |
AB+CD*F/+DE* | |
AB+CD*F/+D*E |
Question 5 |
Expression in which Operator is written after Operand is called as ________.
Postfix Expression | |
Prefix Expression | |
Infix Expression |
There are 5 questions to complete.