OOP Placement Practice MCQ

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

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

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

__________ 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

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

Object oriented programming employs __________ programming approach.

Answer

Correct Answer: Bottom-up

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

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

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

__________ 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

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

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

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

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

Classes in CPP are __________.

Answer

Correct Answer: User defined data types

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

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