cs1301-exam2-answers - 1/8 Your Name: _ CS 1301 Summer 2009...

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

View Full Document Right Arrow Icon
1/8 Your Name: _________________________ CS 1301 Summer 2009 Exam 2/2 Problem Earned Points Points Possible Vocabulary Matching 22 Python Expressions 20 8 Phonebook 6 Fill in the Blank 4 LongWords 12 Pixel Swap 14 Robot Photographer 14 Total: 100
Background image of page 1

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

View Full DocumentRight Arrow Icon
2/8 Your Name: _________________________ 1. Vocabulary Matching (22 points) Write the number before the definition on the right on the line before the matching vocabulary word. __10__ aliases __17__ clone __9__ compound data type __21__ decrement __22__ dictionary __8__ exception __7__ file __3__ format operator __6__ global variables __19__ immutable type _20___ increment __15__ iteration __5__ lambda __2__ local variables _18___ mutable type _16___ nested list __1__ pixel _12___ recursion _11___ sequence _4___ short circuit evaluation _14___ slice _13___ traverse 1. Smallest addressable element of a picture. 2. A variable that can only be accessed within the function that it was defined in. 3. The % operator takes a format string and a tuple of values and generates a string by inserting the data values into the format string at the appropriate locations. 4. When a boolean expression is evaluated the evaluation starts at the left hand expression and proceeds to the right, stopping when it is no longer necessary to evaluate any further to determine the final outcome. 5. A block of code which can be executed as if it were a function but without a name. 6. Can be seen through a program module, even inside of functions. 7. A named entity, usually stored on a hard drive, floppy disk, or CD-ROM, that contains a stream of characters. 8. Raised by the runtime system if something goes wrong while the program is running. 9. A data type that is itself made up of elements that are themselves values. 10. Multiple variables that contain references to the same object. 11. A data type that is made up of elements organized linearly, with each element accessed by an integer index. 12. The process of calling the currently executing function. 13. To repeat an operation on all members of a set from the start to the end. 14. A copy of part of a sequence specified by a series of indices. 15. To repeat a section of code. 16. A list that is itself contained within a list.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2012 for the course CS 1301 taught by Professor Staff during the Fall '08 term at Georgia Institute of Technology.

Page1 / 8

cs1301-exam2-answers - 1/8 Your Name: _ CS 1301 Summer 2009...

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

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