1.

Given two processes (conversion of postfix equation to infix notation and conversion of prefix notation to infix notation), which of the following is easier to implement?(a) Both are easy to implement(b) Conversion of postfix equation to infix equation is harder than converting a prefix notation to infix notation(c) Conversion of postfix equation to infix equation is easier than converting a prefix notation to infix notation(d) Insufficient dataThe origin of the question is Application of Stacks in portion Application of Stacks of Data Structures & Algorithms IThe question was posed to me in unit test.

Answer»

The correct choice is (c) Conversion of POSTFIX equation to INFIX equation is easier than CONVERTING a prefix notation to infix notation

Explanation: As the conversion of prefix notation to infix notation involves reversing the equation, the latter is harder to implement than postfix to infix PROCESS.



Discussion

No Comment Found

Related InterviewSolutions