Encapsulation in C++ MCQs Exercise I

Ques 1 Encapsulation


What is encapsulation in C++?

A The process of converting data into packets for secure transmission
B The process of hiding implementation details and exposing only essential functionality to the user
C The process of converting data into objects
D The process of storing data in an encapsulated container

Ques 2 Encapsulation


Which C++ access specifier is used to achieve encapsulation?

A protected
B public
C private
D encapsulated