
Encapsulation & access Modifiers
Authored by Archana Pasalkar
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Computer Network Revision
Quiz
•
7th Grade - Professio...
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
10 questions
Google Docs Basics
Quiz
•
7th Grade - University
10 questions
Overview of Java Web Development
Quiz
•
University
10 questions
Python Quiz Techno India
Quiz
•
University
10 questions
Programación 2 - Segundo Parcial
Quiz
•
University
10 questions
DGP : Komposisi Fotografi
Quiz
•
University
10 questions
Exam_ISO_Pretest
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade