2EMHFW2ULHQWHG3URJUDPPLQJ_&RXUVHUD
Object Oriented Programming
7/11questions correct
You haven't passed yet. You need at least9questions correct to pass.
Review the material and try again! You have 3 retakes every 8 hours.
Review Related Lesson (/learn/python-databases/home/week/1)
1.
Which came first, the instance or the class?
2.
In Object Oriented Programming, what is another name for the "attributes" of an object?
KWWSVZZZFRXUVHUDRUJOHDUQS\WKRQGDWDEDVHVH[DPIQKEREMHFWRULHQWHGSURJUDPPLQJ
2EMHFW2ULHQWHG3URJUDPPLQJ_&RXUVHUD
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.
4.
Which of the following is NOT a good synonym for "class" in Python?
5.
What does this Python statement do if PartyAnimal is a class?
6.
What is the syntax to look up the fullname attribute in an object stored in the variable colleen?
7.
KWWSVZZZFRXUVHUDRUJOHDUQS\WKRQGDWDEDVHVH[DPIQKEREMHFWRULHQWHGSURJUDPPLQJ
2EMHFW2ULHQWHG3URJUDPPLQJ_&RXUVHUD
Which of these statements is used to indicate that class A will inherit all the features of class B?
8.
What keyword is used to indicate the start of a method in a Python class?
9.
What is "self" typically used for in a Python method within a class?
10.
What does the Python dir() function show when we pass an object into it as a parameter?
11.
Which of the following is rarely used in Object Oriented Programming?
KWWSVZZZFRXUVHUDRUJOHDUQS\WKRQGDWDEDVHVH[DPIQKEREMHFWRULHQWHGSURJUDPPLQJ
2EMHFW2ULHQWHG3URJUDPPLQJ_&RXUVHUD
KWWSVZZZFRXUVHUDRUJOHDUQS\WKRQGDWDEDVHVH[DPIQKEREMHFWRULHQWHGSURJUDPPLQJ