Evaluate the given postfix expression: 3 5 * 6 + 2 3 * -

2025

Evaluate the given postfix expression: 3 5 * 6 + 2 3 * -

  1. A.

    39

  2. B.

    15

  3. C.

    -9

  4. D.

    -17

Attempted by 421 students.

Show answer & explanation

Correct answer: B

Evaluate the postfix expression from left to right. When an operator is found, apply it to the two most recent operands. Step 1: 3 5 * gives 3 * 5 = 15. Step 2: 15 6 + gives 15 + 6 = 21. Step 3: 2 3 * gives 2 * 3 = 6. Step 4: 21 6 - gives 21 - 6 = 15. Therefore, the value of the postfix expression is 15.

Explore the full course: Bpsc