Question 78Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

What is the postfix expression for the corresponding infix expression?

What is the postfix expression for the corresponding infix expression? a + b * c + (d * e)
  1. Aabc*+de*+
  2. Babc+*de*+
  3. Ca+bc*de+*
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) abc*+de*+

Explanation

For a + (b*c) + (d*e): bc* is added to a to give abc*+, then de* is added to give abc*+de*+.

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 78 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.