What are the four main principles of Object-Oriented Programming (OOP)?

Lecture 4 - COMP1551

Quiz
•
Computers
•
University
•
Hard
Long Nguyen
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Encapsulation, Classes, Methods, Objects
Encapsulation, Abstraction, Inheritance, Polymorphism
Polymorphism, Methods, Objects, Functions
Data, Objects, Classes, Modifiers
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of encapsulation in OOP?
To allow all parts of a program to access a class’s data freely
To wrap data and functionality into a single entity and restrict access
To make all class members public
To remove data from a class
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following access modifiers restricts access to only within the same class?
public
protected
private
internal
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which OOP principle involves specifying what data and functionality should be exposed and what should remain hidden?
Abstraction
Encapsulation
Inheritance
Polymorphism
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which statement about inheritance is true?
It allows multiple base classes for a single derived class in C#
It enables code reuse by creating a base class and derived classes
It prevents a derived class from accessing methods of the base class
It only applies to abstract classes
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which OOP concept allows multiple classes to share the same method name but provide different implementations?
Encapsulation
Abstraction
Inheritance
Polymorphism
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the term “is-a” relationship refer to in OOP?
Encapsulation
Inheritance
Abstraction
Static classes
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Object Oriented Programming

Quiz
•
University
10 questions
FOP - CHAPTER 8

Quiz
•
University
9 questions
Object Oriented Programming

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
INTRODUCTION TO OOPS

Quiz
•
University
15 questions
Object Oriented Programming Assessment 1

Quiz
•
University
10 questions
Quiz on OOPs- Day 1 (30-01-2025)

Quiz
•
University
8 questions
A Level OOP

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade