PREMIUM
🎯 PPSC Past Paper Test Series
30 Mock Tests (100 MCQs Each) + 3,000+ Past Paper MCQs
βœ… Detailed Explanations β€’ πŸ’‘ One-Liner Memory Hacks β€’ πŸ“š Previous Papers
WhatsApp Now β†’

The prefix form of A-B/ (C * D ^ E) is?

A. a) -A/B*C^DE
B. b) -A/BC*^DE
C. c) -ABCD*^DE
D. d) -/*^ACBDE
Correct Answer: A. a) -A/B*C^DE

Understanding Prefix Notation

In prefix notation, the operator precedes its operands.

The order of evaluation is from right to left.

Breaking Down the Expression

Given the infix expression: A - B / (C * D ^ E)

To convert it to prefix, we need to follow these steps:

Handle Parentheses:

We start with the innermost parentheses: (C * D ^ E)

Converting this to prefix: * ^ CD E

Handle Division:

The expression becomes: A - B / (* ^ CD E)

Converting it to prefix: - A / B * ^ CD E

Final Prefix Expression:

The complete prefix expression is: -A / B * ^ CD E

Therefore, the correct prefix form of the given infix expression is -A / B * ^ CD E.

Leave a Comment

Your email address will not be published. Required fields are marked *

Join Our WhatsApp Channel ×
Scroll to Top