Which one of the following is prefix representation of the infix expression A*(B+C)/D?
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.
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.
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.