DOC PREVIEW
GSU CSC 2320 - Quiz5 key

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

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

GSU CSC 2320 - Quiz5 key

Download Quiz5 key
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Quiz5 key and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Quiz5 key 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?