Which of the following is not the application of stack?

2024

Which of the following is not the application of stack?

  1. A.

    Data Transfer between two asynchronous process

  2. B.

    Compiler Syntax Analyzer

  3. C.

    Tracking of local variables at run time

  4. D.

    More than one of the above

  5. 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

Explore the full course: Up Lt Grade Assistant Teacher 2025