Skip to main contentSkip to solution

Which of the following statement is correct?

Solution

✅ Correct Option: 2

In prefix and postfix expressions, the position of each operator already fixes the order of evaluation. No parentheses or precedence rules are needed, so one pass over the expression is enough to evaluate it.


Option 1: popping from an empty stack gives underflow. Overflow is pushing onto a full stack.

Option 3: operands are pushed onto the stack. An operator pops the required operands, and the result is pushed back.

Option 4: this describes infix notation. In postfix, the operator is written after its operands.

Keyboard Shortcuts

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