Skip to main contentSkip to solution

Consider the postfix expression:

7 8 2 * 4 / + 3 -

In which order the operators will be evaluated?

(A) +

(B) *

(C) /

(D) -

Solution

✅ Correct Option: 2

A postfix expression is scanned left to right. Each operator is applied to the two most recent operands on the stack, so operators are evaluated in the order they appear.

(B) ∗* : 8∗2=168 * 2 = 16

(C) // : 16/4=416 / 4 = 4

(A) ++ : 7+4=117 + 4 = 11

(D) −- : 11−3=811 - 3 = 8

Keyboard Shortcuts

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