Question 17Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1

What is the equivalent infix expression of the following postfix expression?

What is the equivalent infix expression of the following postfix expression? M, N, O, +, *, P, /, Q, R, S, T, /, +, *, −
  1. AO * (M + N)/P − Q * (R + S/T)
  2. BM * (N + O)/Q − P * (R/S + T)
  3. CN * (M + O)/Q − P * (S + R/T)
  4. D(((M * (N + O))/P) − (Q * (R + (S/T))))
Show answerHide answer

Correct answer: (D) (((M * (N + O))/P) − (Q * (R + (S/T))))

Explanation

Scanning left to right: M N O + * gives M*(N+O); then P / gives (M*(N+O))/P; Q R S T / + * gives Q*(R+S/T); the final − joins them: ((M*(N+O))/P) − (Q*(R+(S/T))).

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1

This is question 17 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1. 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.