CSCI 2320 Data Structure Quiz5Question 1 (60 pts)Consider the following recursive code:int Func ( int a, int b ){ int result; if ( b <= 10 ) result = a; return b;else result = a + Func ( a - 2 , b - 5 ) ) ; return result + a; } Please fill in the runtime stack for Func(10, 25)Question 2 Consider the give tree structure:2.1 What is the output of the following function:Void PrintPreorder (root) { if root != null print(root->data); PrintPreorder(root->left); PrintPreorder(root->right); print(root->data); endif; } 1 2 4 4 5 5 2 3 6 7 7 6 3 12.2 What is the output of the following function:Void PrintPreorder (root) { if root != null print(root->data); PrintPreorder(root->left); print(root->data); PrintPreorder(root->left); endif; } 1 2 4 4 2 4 4 1 2 4 4 2 4
View Full Document