22. Which of the following statements is(are) true? 1.Queue is useful in CPU scheduling and Disk Scheduling. 2.Stack is useful while checking for balanced parentheses in an expression. 3.Queue is useful while converting infix to Postfix/Prefix. 4.Stack is useful while Breadth First Search in a graph. 5.When data is transferred asynchronously between two processes.
Stack is used for synchronization. Examples : IO Buffers, pipes, file IO, etc.
(A)1,2
(B)2,3,4
(C)2,3,4,5
(D) 1,2,5