{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cs1301-exam2-answers

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

Info icon This 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 Comedy & Drama 8 Phonebook 6 Fill in the Blank 4 LongWords 12 Pixel Swap 14 Robot Photographer 14 Total: 100
Image of page 1

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

View Full Document Right 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern