
AS - OOP Encapsulation and Inheritance Retrieval Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
R McGeagh
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is encapsulation in object-oriented programming?
A method to override existing methods
A process to define new classes from scratch
A mechanism to hide technical details within an object
A way to inherit properties from another class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a 'get' method in encapsulation?
To delete an attribute
To create a new attribute
To inspect the current value of an attribute
To change the value of an attribute
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of inheritance, what is a superclass?
A class that only contains private methods
A class that cannot be inherited
A class that defines attributes common to all subclasses
A class that inherits attributes from another class
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of inheritance?
It increases the complexity of the code
It requires rewriting all methods
It allows code reusability
It prevents code from being tested
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a derived class?
A class that only contains static methods
A class that inherits attributes and methods from another class
A class that is used as a template
A class that cannot be instantiated
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does encapsulation improve software quality?
By making all methods public
By keeping related code together in one place
By allowing direct access to all attributes
By eliminating the need for testing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if no 'set' method is provided for an attribute?
The attribute can be changed directly
The attribute cannot be altered
The attribute is automatically deleted
The attribute becomes public
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Unit 1 LO4 Understand employability and communication skills

Quiz
•
12th Grade
8 questions
Topics 7 & 8 - Static Methods/Variables and Null Keyword

Quiz
•
12th Grade
15 questions
Introduction to CSS

Quiz
•
11th - 12th Grade
11 questions
HTML Unit Quiz

Quiz
•
9th - 12th Grade
10 questions
HTML Quiz-1

Quiz
•
6th - 12th Grade
15 questions
Creating and using classes in Python

Quiz
•
9th - 12th Grade
10 questions
AP CS A Quiz 5 PRACTICE

Quiz
•
9th - 12th Grade
10 questions
HTML Forms

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade