Data transfer between asynchronous processes requires a FIFO (First In, First Out) structure, where the first element added is the first one to be removed.
Queues are the ideal data structure for this purpose, as they adhere to the FIFO principle.
Other options:
b) Compiler Syntax Analyzer: Stacks are used extensively in compilers for parsing expressions and checking for syntax errors.
c) Tracking of local variables at run time: Function calls and their corresponding local variables are managed using stacks.
d) A parentheses balancing program: As we discussed earlier, stacks are essential for checking the balance of parentheses in an expression.
Therefore, while stacks are crucial for many applications, they are not suitable for data transfer between asynchronous processes.
If you think there is any confusion in the given MCQs, you can comment below.
docmcqs.com is Pakistan's No.1 online platform for preparing for all types of exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, and for one-paper MCQs. This includes Pedagogy MCQs, general knowledge MCQs, current affairs MCQs, and much more.