Name:     ID: 
 
Email: 

Python Quiz 3

Completion
Complete each statement.
 

 1. 

A(n) ____________ is a piece of code that can be used again and again.
 

 

 2. 

A(n) ___________ is just a special function that we make in a class.
 

 

 3. 

In Python, create a variable by giving it a name and then assign data to it using the ________________.
 

 

 4. 

Looking through any error messages that are output and checking your code is called ___________.
 

 

 5. 

In object oriented programming, if you build ________ in the correct way, you can make libraries out of them.
 

 

 6. 

A variable that stores only the values True or False is called a(n) ________________.
 

 

 7. 

A(n) _________ is a collection of useful functions and data in one place.
 

 

 8. 

A variable that is created in a function is said to be a(n) ______________.
 

 

 9. 

The ______ class is a tkinter factory that requires the arguments for a window, background color, height, and width.
 

 

 10. 


___________ appear in red in IDLE; these are aimed at people and begin with the ___ symbol. (enter each blank in order with a comma between)
 

 

 11. 

The properties or characteristics of an object are called _____________ or _______________.(enter each blank with a comma separating)
 

 

 12. 

_______ is Python’s version of elseif.
 

 

Short Answer
 

 13. 

Explain what collision detection is and why you would use it in Python.
 

 14. 

Explain in your own words when to use classes.
 

 15. 

Explain in your own words how to use coordinates in Python.
 



 
         Start Over