Question

Consider the following statements. S1:  The sequence of procedure calls corresponds to a postorder traversal of the activation tree. S2:  The sequence of procedure returns corresponds to a preorder traversal of the activation tree. Which one of the following options is correct?

A S1 and S2 both are true
B S1 and S2 both are false
C S1 is true and S2 is false
D S1 is false and S2 is true
E None of these
Practice Next

Hey! Ask a query