Question:

Which of the following is NOT an application of stack?

Show Hint

Stack → LIFO, Queue → FIFO, Priority Queue → based on priority (heap).
Updated On: Jun 5, 2026
  • Evaluation of Postfix expression
  • Recursion
  • Priority Queue
  • Function calls
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Concept: A stack is a linear data structure that follows LIFO (Last In First Out). Common applications of stack:
• Expression evaluation (Postfix/Prefix)
• Function calls (call stack)
• Recursion handling

Step 1:
Analyze each option.
• A: Postfix evaluation → uses stack ✔
• B: Recursion → uses stack ✔
• C: Priority Queue → uses heap, not stack ✘
• D: Function calls → uses stack ✔

Step 2:
Conclusion. Priority Queue is not related to stack. \[ \boxed{(3)} \]
Was this answer helpful?
0
0