Exam 11: Inheritance
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
One problem with using a UML diagram is that there is no way to indicate inheritance.
Free
(True/False)
4.9/5
(35)
Correct Answer:
False
In the following line of code,what is the name of the base class?
Class Python(Course):
Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
B
In an inheritance relationship,a minivan can be thought of as a(n)___________ of the vehicles class.
Free
(Short Answer)
4.7/5
(39)
Correct Answer:
subclass,derived class
Which of the following is the correct syntax for defining a class,table,which inherits from the furniture class?
(Multiple Choice)
4.8/5
(32)
When a class inherits another class,it is required to use all the data attributes and methods of the superclass.
(True/False)
4.9/5
(28)
The term ___________ refers to an object's ability to take different forms.
(Short Answer)
4.8/5
(40)
__________ has the ability to define a method in a subclass and then define a method with the same name in a superclass.
(Multiple Choice)
4.9/5
(45)
When there are several classes that have many common data attributes,it is better to write a(n)__________ to hold all the general data.
(Multiple Choice)
4.8/5
(36)
A subclass may not override any method other than the __init__ method.
(True/False)
4.7/5
(42)
Given the following beginning of a class definition for a superclass named clock,how many accessor and mutator methods will be needed to complete the class definition?


(Multiple Choice)
4.9/5
(38)
Which method can you use to determine whether an object is an instance of a class?
(Multiple Choice)
4.9/5
(35)
New attributes and methods may be added to a subclass which makes it a(n)__________ version of the superclass.
(Short Answer)
4.8/5
(34)
The __________ function determines whether or not an object is an instance of a specific class or an instance of a subclass of that class.
(Short Answer)
4.9/5
(43)
In an inheritance relationship,the extended class is called the __________.
(Short Answer)
4.9/5
(41)
In a UML diagram depicting inheritance,you only need to write the name of the subclass.
(True/False)
4.9/5
(28)
Showing 1 - 20 of 36
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)