Encapsulation - Part 1

Encapsulation - Part 1

Professional Development

34 Qs

quiz-placeholder

Similar activities

SS7 course

SS7 course

Professional Development

37 Qs

Lvl 1 Introduction DBMS (QB)

Lvl 1 Introduction DBMS (QB)

Professional Development

39 Qs

Java Quiz 2- Classes, Collections, Threads

Java Quiz 2- Classes, Collections, Threads

Professional Development

30 Qs

Programming Structures

Programming Structures

10th Grade - Professional Development

35 Qs

ITN Final exam 3 of 5

ITN Final exam 3 of 5

Professional Development

30 Qs

ICDL/ECDL COMPUTER ESSENTIALS - QUIZ #2

ICDL/ECDL COMPUTER ESSENTIALS - QUIZ #2

Professional Development

30 Qs

Elements of Art and  Principles of Design - Quiz 1

Elements of Art and Principles of Design - Quiz 1

10th Grade - Professional Development

30 Qs

78-Benefits of Polymorphism

78-Benefits of Polymorphism

Professional Development

39 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?