MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented System Design knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
DESTRUCTOR_IS_DEFINED_AS________?$ |
| A. | Const matrix X(m, n); |
| B. | matrix:: ~matrix(){ } |
| C. | matrix:: matrix(void) |
| D. | matrix() |
| Answer» C. matrix:: matrix(void) | |
| 2. |
The constructors that can take arguments are called ___________ |
| A. | Default Constructor |
| B. | Copy Constructor |
| C. | Parameterized Constructor |
| D. | Dynamic Constructor |
| Answer» D. Dynamic Constructor | |
| 3. |
Which of the following statements about a constructor is not true? |
| A. | We cannot refer to their addresses. |
| B. | They cannot be inherited, though a derived class can call the base class constructor. |
| C. | An object with a constructor can be used as a member of a union. |
| D. | Constructors cannot be virtual. |
| Answer» B. They cannot be inherited, though a derived class can call the base class constructor. | |
| 4. |
Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object |
| A. | Passive |
| B. | Active |
| C. | Both a and b |
| D. | None of the mentioned |
| Answer» C. Both a and b | |