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
What does a class represent in OOP?
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
12 questions
eXtensible Markup Language

Quiz
•
12th Grade - University
10 questions
Java Quiz 1 in tamil theme

Quiz
•
University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
8 questions
Understanding Web Development Stacks

Quiz
•
11th Grade - University
10 questions
Koding dan Kecerdasan Artifisial

Quiz
•
12th Grade - University
10 questions
Website Quiz

Quiz
•
University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University