Which of the following is not the application of stack?

Asked In: BPSC TRE 3.0

Options

  • A. A parenthesis balancing program
  • B. Tracking of local variables at run time
  • C. Data Transfer between two asynchronous process
  • D. Compiler Syntax Analyzer

Correct Answer (Detailed Explanation is Below)

C. Data Transfer between two asynchronous process

Detailed Explanation

Applications of Stack include:

  • ✔ Parenthesis balancing program → Uses stack to check matching brackets

  • ✔ Tracking of local variables at runtime → Call stack

  • ✔ Compiler Syntax Analyzer → Parsing expressions

But:

  • ❌ Data transfer between two asynchronous processes → This is typically done using Queue, not Stack.