Skip to main contentSkip to solution

Identify the type of expression where operators are placed after the corresponding operands like x y * z +; 3 4 5 + *; x y + z 5 * /

Solution

✅ Correct Option: 3

When the operator comes after its operands, the notation is postfix, also called Reverse Polish Notation (RPN). In "x y * z +", the operator * follows x and y, and + follows the result and z. It reads as (x * y) + z.


Option 1 (Infix): the operator sits between the operands, as in x * y + z.

Options 2 and 4 (Polish / Prefix): these are the same thing. The operator comes before the operands, as in + * x y z.

Memory trick: "Reverse" Polish reverses the Polish order, so the operator moves from before the operands to after them.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question