Font size
WorksheetsEncapsulation
Total questions: 10
Worksheet time: 5mins
Which among the following best describes encapsulation?
It is a way of combining various data members into a single unit
It is a way of combining various member functions into a single unit
It is a way of combining various data members and member functions into a single unit which can operate on any data
It is a way of combining various data members and member functions that operate on those data members into a single unit
If data members are private, what can we do to access them from the class object?
Create public member functions to access those data members
Create private member functions to access those data members
Create protected member functions to access those data members
Private data members can never be accessed from outside the class
Encapsulation is a popular feature of __________________that helps in data hiding.
OOPS
ADT
DT
JDBC
Encapsulation is a process of combining data members and
functions in a single unit called _______________ .
method
class
value
variable
Encapsulation also lead to _______________ .
datadase
data handiling
datatype
data abstraction
Encapsulation variables length, breadth, and height are _____________ .
public
private
protected
handel
Select all the given characteristic of OOP
Data structures are designed such that they characterize the objects.
C input/output is based on library and the processes are carried out by including functions.
Programs are divided into what are known as objects.
Emphasis is on data rather than procedure
