Question:

Which one of the following is prefix representation of the infix expression \(P*(Q+R)/S\)?

Show Hint

Prefix notation places operators before operands. Example: \[ (A+B) \rightarrow +AB \] \[ (A+B)*C \rightarrow *+ABC \]
Updated On: Jun 25, 2026
  • \(/ * P + Q R S\)
  • \(P+Q/R*S\)
  • \(*+*PQ/RS\)
  • \(/+QR*PS\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: Prefix notation places the operator before its operands. To convert infix to prefix:
• Evaluate brackets first.
• Move operators before operands.
• Preserve precedence.

Step 1:
Given expression.
\[ P*(Q+R)/S \] The bracketed part is \[ (Q+R) \] whose prefix form is \[ +QR \]

Step 2:
Multiply with \(P\).
\[ P*(Q+R) \] becomes \[ *P(+QR) \] or \[ *P+QR \]

Step 3:
Divide by \(S\).
\[ \frac{P*(Q+R)}{S} \] becomes \[ /(*P+QR)S \] or \[ \boxed{/*P+QRS} \]

Step 4:
Select the answer.
Hence option (A) is correct.
Was this answer helpful?
0
0