Stack is commonly used data structure to convert infix expression to ____ and ______.
(A) PreStack
(B) Prefix
(C) Postfix
(D) PostStack
Stack is commonly used data structure to convert infix expression to ____ and ______.
(A) PreStack
(B) Prefix
(C) Postfix
(D) PostStack
Solution
✅ Correct Option: 1
A stack is used to convert an infix expression (operators between operands, like ) into prefix (operator before operands, like ) and postfix (operator after operands, like ). The stack holds operators and brackets temporarily, so that precedence and associativity are respected in the output.
PreStack and PoststStack are not standard expression notations. The valid notations are only infix, prefix and postfix.
Related questions:
2025: 15 May Shift 2
2026: 21 May Shift 1
2025: 16 May Shift 1