GATE CS 2021 (Forenoon) — Question 14

Programming in CFunctions, Parameter Passing, Scope Rules, RecursionMCQ1 mark · −1/3 if wrongMedium

Consider the following statements: \(S_1\) : The sequence of procedure calls corresponds to a preorder traversal of the activation tree. \(S_2\) : The sequence of procedure returns corresponds to a postorder traversal of the activation tree. Which one of the following options is correct?
  1. A
    \(S_1\) is true and \(S_2\) is false
  2. B
    \(S_1\) is false and \(S_2\) is true
  3. C
    \(S_1\) is true and \(S_2\) is true
  4. D
    \(S_1\) is false and \(S_2\) is false
Practise the full 2021-FN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAThis week's 10-question challengeSame 10 past-GATE questions for everyone this week — see where you stand.
Practise more on Functions, Parameter Passing, Scope Rules, RecursionTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group