Python Zybooks Module 13 - Inheritance
Quiz
•
Science, Other
•
University
•
Practice Problem
•
Hard
Karen Diggs
Used 41+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
_____ is a concept where the derived class acquires the attributes of its base class.
Encapsulation
Inheritance
Abstraction
Polymorphism
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Class Healthcare has the methods Pharmacy() and Labs(). Class Hospitals is derived from Healthcare and has the methods Doctor(), Patients(), and Nurses(). Afterh = Hospitals()executes, how many different methods can object h call, ignoring constructors?
7
5
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the base class for the other classes in the given statement.
Planet is derived from SolarSystem; SolarSystem is derived from Galaxy; Galaxy is derived from Universe.
SolarSystem
Planet
Galaxy
Universe
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is not true?
Inheritance tree describes the hierarchy between base and derived classes.
A derived class can access the attributes of all of its base classes via normal attribute reference operations
A derived class inherits the attributes of the base class, and then adds additional attributes
When adding a new derived class, a programmer has to change the base class as well.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A derived class may define a method having the same name as the base class means that:
a derived class method overrides the method of the base class
a base class method overrides the method of the derived class.
the functionality of the method is the same in both derived and base class.
a derived class method overloads the method of the base class.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify which relationship of the everyday items is a has-a relationship.
Baseball/Sport
Truck/Vehicle
University/Library
Aspirin/Medicine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify which relationship of the everyday items is an is-a relationship.
Basketball/Sport
Car/Transmission
Calculator/Display
Pizza/Topping
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Optimisasi Ekonomi (pert 2 Ekonomi Manajerial)
Quiz
•
University
11 questions
Gestión de Costos
Quiz
•
University
10 questions
Innovative teaching Strategies
Quiz
•
University
15 questions
Bill Nye Gravity
Quiz
•
5th Grade - University
9 questions
riddle quiz
Quiz
•
KG - Professional Dev...
12 questions
Introduction to Machine Learning
Quiz
•
University
10 questions
Sustainable Agriculture
Quiz
•
University
10 questions
Blogs
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Science
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
