...
Question 8992 – GATE 2011
November 13, 2023
Question 14282 – Graphs-and-Tree
November 13, 2023
Question 8992 – GATE 2011
November 13, 2023
Question 14282 – Graphs-and-Tree
November 13, 2023

Question 14235 – Graphs-and-Tree

 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?

Correct Answer: B

Question 2 Explanation: 

The given statements are true, they are well known facts.

  1. The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
  2. The sequence of returns corresponds to a postorder traversal of the activation tree.
A
S1is false and S2is false
B
S1is true and S2is true
C
S1is true and S2is false
D
S1is false and S2is true
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!