Python Chapter 11: Inheritance

Python Chapter 11: Inheritance

Professional Development

10 Qs

quiz-placeholder

Similar activities

BE1 - SOLID Basic Principles

BE1 - SOLID Basic Principles

Professional Development

15 Qs

Learn Python 3 - Lesson 10 Introduction to Classes

Learn Python 3 - Lesson 10 Introduction to Classes

11th Grade - Professional Development

7 Qs

Java Server Page

Java Server Page

Professional Development

10 Qs

Kubernetes Clase8

Kubernetes Clase8

Professional Development

10 Qs

C# Basics

C# Basics

12th Grade - Professional Development

10 Qs

Terraform101

Terraform101

Professional Development

10 Qs

OOP Terms

OOP Terms

Professional Development

10 Qs

Quiz Java Basic

Quiz Java Basic

Professional Development

10 Qs

Python Chapter 11: Inheritance

Python Chapter 11: Inheritance

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Alejandro Hidalgo

Used 3+ 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?