MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will be the postfix form of the above expression-(A+B)∗(C∗D-E)∗F/G
A
None of these
B
A B + C D ∗ E-F G ∗ / ∗
C
A B + C D E ∗-F G / ∗ ∗
D
A B + C D ∗ E-F G / ∗ ∗
Explanation: 

Detailed explanation-1: -AB + CDE *-* F *G / Was this answer helpful?

Detailed explanation-2: -A + B * C would be written as + A * B C in prefix. The multiplication operator comes immediately before the operands B and C, denoting that * has precedence over +. The addition operator then appears before the A and the result of the multiplication. In postfix, the expression would be A B C * +.

Detailed explanation-3: -7. What is the postfix expression of (A+B)-C*(D/E))+F? So the output is: AB+CDE/*-F+.

Detailed explanation-4: -AB*CD/+. Thus postfix expression is AB*CD/+.

There is 1 question to complete.