Encapsulation - Part 1

Encapsulation - Part 1

Professional Development

34 Qs

quiz-placeholder

Similar activities

Behaviour & Productivity

Behaviour & Productivity

University - Professional Development

31 Qs

Quiz Jaringan Komputer

Quiz Jaringan Komputer

Professional Development

30 Qs

Programming with JAVA

Programming with JAVA

Professional Development

30 Qs

Cloud Computing-Model Exam-II-PART-A

Cloud Computing-Model Exam-II-PART-A

Professional Development

30 Qs

IntroductionToOOMD

IntroductionToOOMD

Professional Development

36 Qs

Computer BỊP languadiej

Computer BỊP languadiej

KG - Professional Development

30 Qs

Freshers Quiz

Freshers Quiz

Professional Development

30 Qs

ULANGKAJI T1

ULANGKAJI T1

12th Grade - Professional Development

38 Qs

 Encapsulation - Part 1

Encapsulation - Part 1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the 3 types of encapsulation in Java?
A. Member variable encapsulation, function encapsulation, and class encapsulation
B. Private variable encapsulation, public variable encapsulation, and protected variable encapsulation
C. Member variable encapsulation, function encapsulation, and static encapsulation
D. Private variable encapsulation, public variable encapsulation, and final variable encapsulation

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is encapsulation 1?
A. A way to restrict the direct access to some components of an object
B. A way to make a class more robust and easier to maintain
C. A way to hide the implementation details of a class
D. A way to bind data and methods together

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is encapsulation for in Java?
A. To integrate data (variables) and code (methods) into a single unit
B. To hide the implementation details of a class
C. To make a class more robust and easier to maintain
D. All of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the 4 pillars of OOP encapsulation?
A. Inheritance, Polymorphism, Encapsulation, and Abstraction
B. Abstraction, Encapsulation, Polymorphism, and Composition
C. Inheritance, Composition, Encapsulation, and Polymorphism
D. Abstraction, Composition, Encapsulation, and Inheritance

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is encapsulation in OOP?
A. A way to restrict the direct access to some components of an object.
B. A way to make a class more robust and easier to maintain.
C. A way to hide the implementation details of a class.
D. A way to bind data and methods together.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are 2 examples of encapsulation?
A. School bag and email account
B. Physical layer and data link layer
C. Code and data
D. Header and trailer

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What layer is encapsulation?
A. Physical layer
B. Data link layer
C. Network layer
D. Transport layer

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?