1.

When converting the prefix notation into an infix notation, the first step to be followed is ________(a) Reverse the equation(b) Push the equation to the stack(c) Push the equation onto the queue(d) Push the equation to the stack or queueThis intriguing question comes from Application of Stacks topic in portion Application of Stacks of Data Structures & Algorithms IThe question was posed to me in a job interview.

Answer»

The correct choice is (a) Reverse the equation

The explanation is: The STEPS that are FOLLOWED are: the equation is reversed, pushed onto a stack, popped ONE by one and SOLVED. THEREFORE the first step is reversing the equation.



Discussion

No Comment Found

Related InterviewSolutions