
PF101 - Week 2 - Quiz #1
Quiz
•
Other
•
University
•
Medium
Jerome Escultura
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main principle of Object-Oriented Programming (OOP)?
Encapsulation
Inheritance
Polymorphism
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of inheritance in OOP?
To allow a class to inherit properties and methods from another class
To ensure that all classes are independent of each other
To change the behavior of a method at runtime
To restrict access to an object's data
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which concept allows a method to perform different tasks based on the object that is invoking it?
Encapsulation
Polymorphism
Inheritance
Abstraction
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the term "subclass" refer to in OOP?
A class that is derived from another class
A method within a class
An instance of a class
A type of interface
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does polymorphism improve code flexibility in OOP?
By allowing methods to be overridden or overloaded to perform different tasks based on the object type
By ensuring that all methods are private
By enforcing a single method signature across all classes
By preventing the creation of subclasses
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which principle of OOP helps in the implementation of code reusability?
Inheritance
Encapsulation
Abstraction
Polymorphism
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of encapsulation in OOP?
To hide the internal state of an object and require all interaction to be performed through an object's methods
To allow multiple classes to share the same interface
To create a new class based on an existing class
To define a method that can be used by different classes
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
What do you remember?
Quiz
•
University
10 questions
K-Nearest Neighbors Quiz
Quiz
•
University
8 questions
Đề 6
Quiz
•
University
10 questions
Python Zybooks Module 13 - Inheritance
Quiz
•
University
10 questions
Java Programming MCQ Questions
Quiz
•
University
13 questions
DBMS & SQL Classes Feedback
Quiz
•
University
15 questions
Consumer Behavior_Class, Age and Gender Quiz
Quiz
•
University
14 questions
NPTEL - MOOCS - Orientation
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University