Quiz 1 Object Oriented Programming (100分)
1.Which came first, the instance or the class?
class
instance
method
function
2.In Object Oriented Programming, what is another name for the “attributes” of an object?
forms
portions
messages
methods
fields
3.At the moment of creation of a new object, Python looks at the _________ definition to define the structure and capabilities of the newly created object
method
constructor
instance
class
cache
4.Which of the following is NOT a good synonym for “class” in Python?
template
blueprint
pattern
direction
5.What does this Python statement do if PartyAnimal is a class?
zap = PartyAnimal()
Copy the value from the PartyAnimal variable to the variable zap
Use the PartyAnimal template to make a new object a