1.

The result of evaluating the postfix expression 5, 4, 6, +, *, 4, 9, 3, /, +, * is?(a) 600(b) 350(c) 650(d) 588My query is from Stack Operations in portion Abstract Data Types of Data Structures & Algorithms IThe question was asked in an interview for internship.

Answer»

The correct CHOICE is (b) 350

For EXPLANATION: The postfix EXPRESSION is EVALUATED using stack. We will get the infix expression as

(5*(4+6))*(4+9/3). On solving the Infix Expression, we get

(5*(10))*(4+3)

= 50*7

= 350.



Discussion

No Comment Found

Related InterviewSolutions