| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 5

1. Which among the following best describes encapsulation?

Correct Answer is : It is a way of combining various data members and member functions that operate on those data members into a single unit

2. If data members are private, what can we do to access them from the class object?

Correct Answer is : Create public member functions to access those data members

3. While using encapsulation, which among the following is possible?

Correct Answer is : Data member’s data type can be changed without changing any other code

4. Which feature can be implemented using encapsulation?

Correct Answer is : Abstraction

5. Find which of the following uses encapsulation?

Correct Answer is : class student{int a; public: void disp(){ cout<