Which of the following statement is correct?
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.
Related questions:
2025: 27 May Shift 2
2026: 29 May Shift 2
2026: 11 May Shift 2
2026: 24 May Shift 1
2026: 21 May Shift 1