GATE CS 2021, set 1 · Question 14 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider the following statements.
S₁ : The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
S₂ : The sequence of procedure returns corresponds to a postorder traversal of the activation tree.
Which one of the following options is correct?
- (A) S₁ is true and S₂ is false
- (B) S₁ is false and S₂ is true
- (C) S₁ is true and S₂ is true
- (D) S₁ is false and S₂ is false
Answer
Answer (C)
Answer from the official GATE CS 2021 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes