Question 58

Which one of the following is prefix representation of the infix expression A*(B+C)/D?

  1. A/*A+BCD
  2. BA+B/CD
  3. C+*AB/CD
  4. DNone of the above
Show answerHide answer

Correct answer: (A) /*A+BCD

Explanation

A*(B+C)/D is evaluated as (A*(B+C))/D. In prefix form this is / * A + B C D.

From DSSSB TGT Computer Science Practice Set 2

This is question 58 of DSSSB TGT Computer Science Practice Set 2. 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.