UGC-NET Jul 2016 · Stacks

MCQ · 2 marks · Problem PROG-DSTR-0041

Which of the following is not an inherent application of stack?
  1. A
    Implementation of recursion
  2. B
    Evaluation of  a postfix expression
  3. C
    Job scheduling
  4. D
    Reverse a string

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solution(A) Recursion is implemented with a call stack of activation records — a stack application.(B) Postfix evaluation pushes operands and pops them for each operator — a stack application.(C) Job scheduling serves jobs in arrival or priority order, which uses a queue or priority queue, not last-in first-out — not a stack application.(D) Pushing the characters of a string and popping them gives the reverse — a stack application.Answer: C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com