Consider the following statements. S1: The sequence of procedure calls…
GATE · 2021 · CS · Set 1 · Computer Science & ITTPSC Computer/IT Posts · 2025 · Senior Informatics Officer · Section D
Consider the following statements.
S1: The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
S2: The sequence of procedure returns corresponds to a postorder traversal of the activation tree.
Which one of the following options is correct?
- A.
S1 is true and S2 is false
- B.
S1 is false and S2 is true
- C.
S1 is true and S2 is true
- D.
S1 is false and S2 is false
Attempted by 450 students.
Show answer
Correct answer: C
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…