PRASHNIKAप्रश्निका
Back to the paper

Convert the following infix notation to prefix form.

Computer Science20252 marksOne word
Convert the following infix notation to prefix form. $(A - B) / C * (D + E)$

Answer

Answer

Official answer key
Infix: $(A-B)/C*(D+E)$ Step 1: $(A-B) \to {-}AB$ Step 2: $(A-B)/C \to {/}{-}ABC$ Step 3: $(D+E) \to {+}DE$ Step 4: Combine the two results with $*$: ${*}\ {/}{-}ABC\ {+}DE$ Prefix form: $*/-ABC+DE$
Data structures

From ISC 2025 Specimen Computer Science Paper 1, question 2(i).