Postfix notation 6324 + - * has value:

2026

Postfix notation 6324 + - * has value:

  1. A.

    -5

  2. B.

    22

  3. C.

    80

  4. D.

    -18

Attempted by 250 students.

Show answer & explanation

Correct answer: D

To evaluate the postfix expression 6324 + - *, use a stack. Push operands 6, 3, 2, and 4 onto the stack sequentially. When encountering '+', pop 4 and 2, calculate 2 + 4 = 6, and push the result. When encountering '-', pop 6 (result of addition) and 3, calculate 3 - 6 = -3, and push the result. When encountering '*', pop -3 and 6 (initial operand), calculate 6 * (-3) = -18. The final value is -18.

Explore the full course: Up Lt Grade Assistant Teacher 2025