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


b is the correct option





Ques 2 Encapsulation


Which C++ access specifier is used to achieve encapsulation?
  a) protected
  b) public
  c) private
  d) encapsulated


c is the correct option