cs1301-exam3-fall09

cs1301-exam3-fall09 - CS1301 - Exam3 Name: Section or...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS1301 - Exam3 Name: Section or Grading TA: Instructions: Please write clearly. What I cannot read, I will not grade. Show all your work in detail. I give partial credit. This exam has 8 pages including the title page. Please check to make sure all pages are included. This exam is closed book, closed notes, no calculators. Dont get bogged down on any one question. You will have 50 minutes to complete this exam. I commit to uphold the ideals of honor and integrity by refusing to betray the trust bestowed upon me as a member of the Georgia Tech community. Signature: Question Points Score 1. Vocabulary 15 2. Recursion Fun 5 3. Mystery Code 3 4. Three Lambdas 6 5. Lots-o-Letters 6 6. Skip Every 3 8 7. Factorial 6 8. RedBlend 10 9. BigO Graph 10 Bonus Questions Total: 69 Fall 2009 CS 1301 Exam 3 (cont.) Vocabulary Questions 1. For each of the following vocabulary terms, write a concise 1-2 sentence definition. Be brief, and to the point. (a) (3 points) lambda (b) (3 points) global variable (c) (3 points) immutable data type (d) (3 points) runtime error (e) (3 points) semantic error Code Understanding Questions 2. (5 points) Write down what would be printed when the following code is executed. def rec(n): if(n<=1): return 1 print n value= rec(n-1) + rec(n-2) return value result = rec(5) 2/ 8 Fall 2009 CS 1301 Exam 3 (cont.) 3. (3 points) What does this mystery function do? Tell us the result of calling3....
View Full Document

Page1 / 8

cs1301-exam3-fall09 - CS1301 - Exam3 Name: Section or...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online