1/24
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What is the fundamental blueprint for creating objects in programming?
A Class
The process of creating an instance of a class is known as __.
Instantiation
What term refers to the data component stored within a class?
Attribute or Field
What term refers to the functions or actions defined within a class?
Methods
In Python, which keyword is used to define a new class?
class
The special method used to initialize a new object is called the __.
Constructor
In Python, what is the specific name for the constructor method?
\text{__init__()}
What does the parameter self represent in a class method?
It refers to the specific instance of the object being operated on.
The principle of hiding internal details and showing only necessary features is __.
Encapsulation
Which concept allows a class to acquire the properties and methods of another class?
Inheritance
In the hierarchy of inheritance, the existing class is called the __.
Superclass (or Parent Class)
In the hierarchy of inheritance, the new class that derives from another is the __.
Subclass (or Child Class)
What is the ability of different objects to respond to the same method call in their own way?
Polymorphism
An object's state is primarily determined by its __.
Attributes
To access a method of an object, we typically use __ notation.
Dot notation (e.g., object.method())
A variable that is shared by all instances of a class is a __.
Class Variable
A variable that is unique to each individual object is an __.
Instance Variable
The process of restricting direct access to some of an object's components is part of __.
Data Hiding
What is the term for a method that retrieves the value of a private attribute?
Getter
What is the term for a method that modifies the value of a private attribute?
Setter
In Python, all classes inherit from a base class called __.
object
What is the term for replacing a parent class's method with a new implementation in the child class?
Method Overriding
A concrete representation of a class in memory is called an __.
Instance
What defines the interface through which an object interacts with the rest of the program?
Public Methods
What is the main benefit of using classes in software development?
Code Reusability and Organization