Exam 11: Inheritance
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
When a subclass method has the same name as a superclass method, it is often said that the subclass method _______________ the superclass method.
(Short Answer)
4.7/5
(76)
A subclass may not override any method other than the __init__ method.
(True/False)
4.7/5
(90)
The term _______________ refers to an object's ability to take different forms.
(Short Answer)
4.9/5
(73)
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.9/5
(64)
In an inheritance relationship, a television is a(n) _______________ of the electronics class.
(Short Answer)
4.8/5
(74)
One of the ingredients of polymorphic behavior is the ability to define a method in a subclass, and then define a method with the same name in a superclass.
(True/False)
4.8/5
(76)
In the following line of code, what is the name of the subclass?
Class Rose(Flower):
(Multiple Choice)
4.9/5
(76)
_______________ is used to create an 'is a' relationship among classes.
(Short Answer)
4.8/5
(83)
An 'is a' relationship exists between a grasshopper and a bumblebee.
(True/False)
4.8/5
(81)
Which of the following is the correct syntax for defining a class dining which inherits from class furniture?
(Multiple Choice)
4.8/5
(81)
The _______________ function determines whether an object is an instance of a specific class, or an instance of a subclass of that class.
(Short Answer)
4.8/5
(92)
A superclass inherits attributes and methods from its subclasses without any of them having to be rewritten.
(True/False)
4.9/5
(71)
In an inheritance relationship, what is a specialized class called?
(Multiple Choice)
4.7/5
(87)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)