Web-Technologies
October 10, 2023
Queues-and-Stacks
October 10, 2023
Web-Technologies
October 10, 2023
Queues-and-Stacks
October 10, 2023

GATE 1997

Question 7

Which of the following is essential for converting an infix expression to the postfix from efficiently?

A
An operator stack
B
An operand stack
C
An operand stack and an operator stack
D
A parse tree
Question 7 Explanation: 
An operator stack ⇒ Infix to (Postfix or Prefix)
An operand stack ⇒ Postfix to Prefix
Operator & operand stack ⇒ We don’t use two stacks
Parse tree ⇒ No use
Correct Answer: A
Question 7 Explanation: 
An operator stack ⇒ Infix to (Postfix or Prefix)
An operand stack ⇒ Postfix to Prefix
Operator & operand stack ⇒ We don’t use two stacks
Parse tree ⇒ No use

Leave a Reply

Your email address will not be published. Required fields are marked *