Which of the following is not the application of stack?
2024
Which of the following is not the application of stack?
- A.
Data Transfer between two asynchronous process
- B.
Compiler Syntax Analyzer
- C.
Tracking of local variables at run time
- D.
More than one of the above
- E.
None of the above
Attempted by 956 students.
Show answer & explanation
Correct answer: A
Explanation:
A stack is a linear data structure that follows the Last-In-First-Out (LIFO) principle.
Applications of Stack:
Compiler Syntax Analyzer: Stacks are used to check balanced parentheses and manage nested structures.
Tracking Local Variables: Function calls are managed using a call stack, which stores activation records.
Not an Application:
Data Transfer between Asynchronous Processes: This requires First-In-First-Out (FIFO) order, which is handled by queues, not stacks.
👉 Correct Answer: Option A