
Basic OOP Concepts
Authored by L Fanning
Other
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a class in Object-Oriented Programming (OOP)?
A specific instance of data
A blueprint for creating objects
A function that performs calculations
A variable that stores values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which term describes an individual occurrence created from a class?
Attribute
Object
Method
Setter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are attributes in the context of OOP?
Functions inside a class
Data stored within an object
The process of creating an object
The parent class
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a method in a class?
A variable that holds data
A function defined inside a class
A way to inherit properties
A type of attribute
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a constructor method in a class?
To delete objects
To initialise object attributes when an object is created
To inherit from another class
To encapsulate data
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is commonly used in Python to define a class?
object
class
method
attribute
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does encapsulation mean in OOP?
Combining multiple classes into one
Restricting direct access to some of an object's components
Allowing objects to inherit from multiple classes
Creating new objects from a class
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?