
Encapsulation & access Modifiers

Quiz
•
Computers
•
University
•
Medium
Archana Pasalkar
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can Encapsulation be achieved?
Using Access Specifiers
Using only private members
Using inheritance
Using Abstraction
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using encapsulation data security is ___________
Not ensured
Ensured to some extent
Purely ensured
Very low
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
process of wrapping variables and methods in a single unit is
abstraction
Polymorphism
Encapsulation
Overriding
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these access specifier must be used for class so that it can be inherited by another subclass?
public
private
protected
none of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The private member of a class can be accessible
Within the class in which it is declared
Within all the sub-classes of its class in any package where this class is visible
Within all the classes in the package containing its class
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The protected member of a class can be accessible
Within the class in which it is declared
Within all the sub-classes of its class in any package where this class is visible
Within all the classes in the package containing its class
A and B
A, B, and C
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Non-subclasses in other packages cannot access protected members from other packages
True
False
Similar Resources on Wayground
9 questions
Java Interface Quiz

Quiz
•
University
9 questions
(Part 2) Network Model

Quiz
•
University
10 questions
spss

Quiz
•
University
10 questions
Object Oriented Programming(Chapter 1)

Quiz
•
University
11 questions
Review of OOPs Java Quiz1

Quiz
•
University
12 questions
Topic 6: Design Concepts and Principles

Quiz
•
University
10 questions
Quiz 6

Quiz
•
University
10 questions
Quiz Kelas Belajar Sistem Informasi - OOP

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 Computers
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