What does a class represent in OOP?
OOP-Q1

Quiz
•
Information Technology (IT)
•
University
•
Medium
Jhun Andam
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A specific instance of an object
A blueprint for creating objects
A method inside an object
A variable inside an object
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which keyword is used to define a class in Python?
`object`
`self`
`class`
`define`
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is an instance of the `Car` class?
Car("Toyota")
class Car: pass
def Car(): pass
"Car"
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the `__init__` method in Python?
It is a destructor for objects.
It initializes the attributes of a class.
It creates a new instance of a class.
It is used to create private variables.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Identify the correct syntax to access an attribute of an object.
dog1[name]
dog1::name
dog1.name
dog1->name
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will the following code output?
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which statement about inheritance in Python is correct?
A class can inherit from multiple parent classes.
Only one class can be inherited at a time.
Inheritance is not possible in Python.
Parent classes cannot have methods.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python_MCQ_2

Quiz
•
University
10 questions
Python Quiz

Quiz
•
University
9 questions
Comentarios en Python

Quiz
•
University
14 questions
ORM - Django

Quiz
•
University
15 questions
TechStackChallenge

Quiz
•
University
10 questions
Python_Quiz_1

Quiz
•
University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
13 questions
Python Programming Quiz

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade