Python Chapter 11: Inheritance

Quiz
•
Computers
•
Professional Development
•
Medium
Alejandro Hidalgo
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an inheritance relationship, the is the general class.
subclass
superclass
primary class
child class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an inheritance relationship, the is the specialized class.
superclass
secondary class
subclass
parent class
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose a program uses two classes: Airplane and JumboJet.
Which of these would most likely be the subclass?
Airplane
JumboJet
Both
Neither
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This characteristic of object-oriented programming allows the correct version of an overridden method to be called when an instance of a subclass is used to call it.
polymorphism
inheritance
generalization
specialization
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You can use this to determine whether an object is an instance of a class.
the in operator
the is_object_of function
the isinstance function
the error messages that are displayed when a program crashes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Polymorphism allows you to write methods in a subclass that have the same name as methods in the superclass.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is not possible to call a superclass’s init method from a subclass’s init method.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
AppsLab_Q3

Quiz
•
1st Grade - Professio...
10 questions
PENGENALAN GOOGLE CLASSROOM

Quiz
•
Professional Development
12 questions
Classful IP addresses

Quiz
•
Professional Development
10 questions
BoostHours Python 09/04

Quiz
•
Professional Development
10 questions
Sobre ClassDojo

Quiz
•
Professional Development
10 questions
Python Advance Quiz

Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
15 questions
BE1 - Creational Design Pattern

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development