Which data structure would you use to evaluate an expression given in postfix notation?

  • AStack
  • BBinary Tree
  • CQueue
  • DNone of these
Show answerHide answer

Correct answer A

A stack is used to evaluate postfix expressions as it allows operations in a last-in, first-out (LIFO) order. Operands are pushed onto the stack. Operators pop operands for computation, pushing the result back.