Chapter 14: Classes and objects - Online Test

Q1. Members under this specifier can be accessed from outside
Answer : Option A
Explaination / Solution:
No Explaination.


Q2. An array which contains the class type of element is called
Answer : Option A
Explaination / Solution:
No Explaination.


Q3. When one class become the member of another class then it is called
Answer : Option B
Explaination / Solution:
No Explaination.


Q4. A constructor that accepts no parameter is called .
Answer : Option A
Explaination / Solution:
No Explaination.


Q5. A constructor which can take arguments is called
Answer : Option B
Explaination / Solution:
No Explaination.


Q6. A constructor having a reference to an already existing object of its own class is called
Answer : Option C
Explaination / Solution:
No Explaination.


Q7. Removes the memory of an object which was allocated by the constructor at the time of creating a object.
Answer : Option D
Explaination / Solution:
No Explaination.


Q8. In this method ,the parameterized constructor is invoked automatically whenever an object is created.
Answer : Option A
Explaination / Solution:
No Explaination.


Q9. In this method ,the name of the constructor is explicitly given to invoke the parameterized constructor so that the object can be created and initialized .
Answer : Option B
Explaination / Solution:
No Explaination.


Q10. Characteristics of Destructors
Answer : Option D
Explaination / Solution:
No Explaination.