ITPEC FE Subject A April 2026 Question 5

Source exam: ITPEC FE Subject A April 2026Topic: Basic Theory & Math

ITPEC FE Subject A April 2026 — Question 5 of 60

Postfix notation — the operator is written after its two operands.

Because + is left-associative, a+(b×c)+(d×e) groups as ((a+(b×c))+(d×e)). Convert bottom-up:

  • b×cbc×
  • a+(b×c)abc×+
  • d×ede×
  • the outer + joins those two results → abc×+de×+

Answer (c): abc×+de×+

Why not others:
- (a) a+bc×de+× — leaves the first + in infix position and ends with ×, which would multiply two sums

- (b) abc×+de+× — applies + to d and e where the expression has ×, then multiplies at the end

- (d) abc+×de×+ — evaluates a+b before the multiplication, i.e. (a+b)×c

Key rule: Each operator in postfix acts on the two most recent results, so the last symbol is always the final operation — here the outer +, never a ×.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.