
OOP | REX03

Quiz
•
Computers
•
University
•
Hard
Gergő Morvai
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a pillar of Object-Oriented Programming (OOP)?
Inheritance
Polymorphism
Encapsulation
Compilation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a class in OOP?
To execute code
To store data
To serve as a blueprint for creating objects
To define program flow
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the __init_ _ method do in a Python class?
It is a class attribute.
It is a regular method that can be called anytime.
It is a special method that initializes object attributes when an object is created.
It is a method that is called when an object is deleted.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes inheritance in OOP?
Creating new objects from existing ones
Defining the structure of a class
Allowing a class to inherit attributes and methods from another class
Hiding complex implementation details
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is polymorphism in OOP?
The ability of an object to change its class during runtime
The ability of different classes to use the same method name but perform different actions
The process of bundling data and methods within a class
The ability of a class to have multiple constructors
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a benefit of encapsulation?
Code reusability
Data protection
Code readability
Program execution speed
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of accessors (getters) in encapsulation?
To modify attribute values
To define class attributes
To retrieve attribute values
To control program flow
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Inheritance

Quiz
•
11th Grade - University
8 questions
A Level OOP

Quiz
•
12th Grade - University
10 questions
Object Oriented Programming

Quiz
•
University
10 questions
java quiz on Encapsulation and Abstraction

Quiz
•
University
10 questions
Topik 2: Ciri-ciri Object Oriented Programming (OOP)

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
6 questions
Easy Round

Quiz
•
University
10 questions
Objection-Oriented Concepts

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade