Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 2(i)

2 marks

Computer ScienceISC 2026 Improvement Computer Science Paper 1ConversionData structures

Answer the following.

Convert the following infix notation to prefix form. (P + Q / R) * (S + T / U) / V

Convert the following infix notation to prefix form. $(P + Q / R) * (S + T / U) / V$
Open in the Infix to postfix converter

Answer

Answer

Infix: $(P + Q/R) * (S + T/U) / V$ Step 1: $Q/R \to /QR$, so $P+Q/R \to +P/QR$ Step 2: $T/U \to /TU$, so $S+T/U \to +S/TU$ Step 3: $(P+Q/R)*(S+T/U) \to *\ +P/QR\ +S/TU$ Step 4: Divide the whole product by $V$: $\to /\ *+P/QR+S/TU\ V$ Prefix form: $/\ *\ +\ P\ /\ Q\ R\ +\ S\ /\ T\ U\ V$