Python Zybooks Module 13 - Inheritance

Quiz
•
Science, Other
•
University
•
Hard
Karen Diggs
Used 41+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Evidence of Ancestral Relationships

Quiz
•
7th Grade - University
15 questions
Types of Evidence

Quiz
•
12th Grade - University
15 questions
Unit 4 Vocabulary Quizs

Quiz
•
6th Grade - University
15 questions
Flipped

Quiz
•
6th Grade - University
10 questions
PE- Self Awareness / Disclosure

Quiz
•
University
15 questions
AFNR 5.1 Vocabulary

Quiz
•
9th Grade - University
10 questions
Module 3 Self Awareness and Values Development

Quiz
•
University
15 questions
Modern Classification

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University