stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Lesson 7 Flashcards | StudBud
Explore
/
Lesson 7
What is inheritance in Python?
What is polymorphism in Python?
Lesson 7
5 terms
·
StudBud Administration
·
3 plays
Imported from external platform
Flashcards
5 cards
F
Practice quiz
P
Host live
L
Questions
5
Answers
1
What is polymorphism in Python?
It's the ability of objects of different classes to handle same operations.
It's the property of an object to change its state when a method is called.
It's the process of creating a new class based on an existing class.
It's the ability of an object to share its data with other objects.
2
What is inheritance in Python?
It's the process of hiding implementation details.
It's the process of creating a new class based on an existing class.
It's the ability of an object to share its data with other objects.
It's the property of an object to change its state when a method is called.
3
Which method is used to create a new object in Python?
new()
make()
__init__()
create()
4
What is encapsulation in object-oriented programming?
It's the ability of an object to share its data with other objects.
It's the process of creating objects based on classes.
It's the process of hiding implementation details.
It's the property of an object to change its state when a method is called.
5
What is a class in Python?
It's a function for performing mathematical operations.
It's an object that stores data.
It's a data type for storing numbers.
It's a blueprint for creating objects with specific attributes and methods.