Encapsulation

Encapsulation

Professional Development

27 Qs

quiz-placeholder

Similar activities

star spangled banner quiz

star spangled banner quiz

2nd Grade - Professional Development

23 Qs

APA citing style

APA citing style

Professional Development

22 Qs

Financial Literacy

Financial Literacy

9th Grade - Professional Development

22 Qs

Post Test IHT Pengimbasan SLB Negeri Kotabaru

Post Test IHT Pengimbasan SLB Negeri Kotabaru

Professional Development

23 Qs

Trivia

Trivia

KG - Professional Development

23 Qs

Hebrew Numbers and Words in English

Hebrew Numbers and Words in English

11th Grade - Professional Development

23 Qs

Latihan PKP BK

Latihan PKP BK

12th Grade - Professional Development

25 Qs

Tools & Associated Equipment

Tools & Associated Equipment

Professional Development

22 Qs

Encapsulation

Encapsulation

Assessment

Quiz

Education

Professional Development

Practice Problem

Medium

Created by

scoremaster JAVA

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you mean by Encapsulation ?

A method of combining data and its associated function in the form of a single unit
Use of only one function and multiple class variables
Use of only one class variable and multiple methods
Use of only one method and multiple classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which feature can be implemented using encapsulation ?

Inheritance
Abstraction
Polymorphism
Overloading

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Normally all instance variables are given the qualifier _______

public
protected
private
static

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A private instance variable

can be modified by a method outside the class
can be modified by a method outside the class if it is returned by a method
can be modified by a method outside the class if it is a class type and returned by a method
can be modified using the object name followed by dot and then the name of the instant variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the advantage of Encapsulation ?

Only public methods are needed
Making the class final causes no consequential changes to other code
It changes the implementation without changing a class's contract and causes no consequential changes to other code
It changes a class's contract without changing the implementation and causes no consequential changes to other code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables that are shared by every instances of a class are

public variables
private variables
instance variables
class variables

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept of java is achieved by combining methods and attributes into a class

Encapsulation
Inheritance
Polymorphism
Abstraction

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?