Question 42

Which of the following applications may use a stack? (A) Parenthesis balancing program

Which of the following applications may use a stack? (A) Parenthesis balancing program (B) Process scheduling in operating system (C) Conversion of infix arithmetic expression to postfix form
  1. A(A) and (B)
  2. B(B) and (C)
  3. C(A) and (C)
  4. D(A), (B) and (C)
Show answerHide answer

Correct answer: (C) (A) and (C)

Explanation

Stacks are used for parenthesis balancing and infix-to-postfix conversion, so (A) and (C) are correct. Process scheduling uses queues, not stacks.

From DSSSB TGT Computer Science Practice Set 5

This is question 42 of DSSSB TGT Computer Science Practice Set 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.