Python Zybooks Module 13 - Inheritance

Python Zybooks Module 13 - Inheritance

University

10 Qs

quiz-placeholder

Similar activities

Labor Relations and Negotations 1

Labor Relations and Negotations 1

University - Professional Development

15 Qs

Virginia Henderson

Virginia Henderson

University

10 Qs

Accounting Standards

Accounting Standards

11th Grade - University

10 Qs

EVALUACION PAE

EVALUACION PAE

University

10 Qs

Acids and bases are all around

Acids and bases are all around

University

14 Qs

¿Qué es más importante, la ética o la religión?

¿Qué es más importante, la ética o la religión?

University

10 Qs

TPKI (MCE)

TPKI (MCE)

University

15 Qs

CM repaso Metales

CM repaso Metales

University

10 Qs

Python Zybooks Module 13 - Inheritance

Python Zybooks Module 13 - Inheritance

Assessment

Quiz

Science, Other

University

Practice Problem

Hard

Created by

Karen Diggs

Used 41+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?