OOP Placement Practice MCQ

OOP Placement Practice MCQ

1. Members of the class can be declared with auto, extern or register storage classes.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

2. Object based language differs from Object oriented language as it does not support features. 1) Encapsulation 2) Inheritance 3) Dynamic Binding 4) Abstraction 5) Polymorphism Choose the correct option:

Answer

Correct Answer: 2 and 3

Note: This Question is unanswered, help us to find answer for this one

3. Private members of the class are accessible only to the members of the same class.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

4. __________ refers to the act of representing only essential features without including the background details.

Answer

Correct Answer: Data Abstraction

Note: This Question is unanswered, help us to find answer for this one

5. This kind of isolation of the data from direct access by the program is called __________.

Answer

Correct Answer: Data Hiding

Note: This Question is unanswered, help us to find answer for this one

6. Object oriented programming employs __________ programming approach.

Answer

Correct Answer: Bottom-up

Note: This Question is unanswered, help us to find answer for this one

7. In CPP program, Can we declare and define a user defined function inside a struct as we do in a class?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

8. The CPP compiler supports automatic type conversions for the user defined data types.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

9. __________ is the OOP feature and mechanism that binds together code and the data it manipulates, and keeps both safe from the outside world.

Answer

Correct Answer: Data Encapsulation

Note: This Question is unanswered, help us to find answer for this one

10. Can a class be declared/defined inside another class?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

11. In general view, is this class definition valid?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

12. In CPP, it is mandatory and must to initialize const variables.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

13. Which of the above are false statements about Local class?

Answer

Correct Answer: 3 and 6

Note: This Question is unanswered, help us to find answer for this one

14. Classes in CPP are __________.

Answer

Correct Answer: User defined data types

Note: This Question is unanswered, help us to find answer for this one

15. When a class is defined inside any function or block, it is called __________.

Answer

Correct Answer: Local class

Note: This Question is unanswered, help us to find answer for this one

search