Question 91Asked in BPSC TRE 2.0 (2023) Computer Science Class 11-12

The postfix expression equivalent of the prefix expression * + ab − cd is

  1. Aab+cd−*
  2. Babcd+−*
  3. Cab+cd*−
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) ab+cd−*

Explanation

The prefix * + ab − cd means (a + b) * (c − d). In postfix this becomes ab+ followed by cd−, then *, which gives ab+cd−*.

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

This is question 91 of BPSC TRE 2.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.