Topic: Chapter 14: Classes and objects (Test 1)



Topic: Chapter 14: Classes and objects
  • «
  • Test: 1(current)
  • «
Q.1
Members under this specifier can be accessed from outside
A. The Public Members
B. The Private Members
C. The Protected Members
D. The Empty Members
Answer : Option A
Explaination / Solution:
No Explaination.


Workspace
Report
Q.2
An array which contains the class type of element is called
A. Array of objects
B. Nested class
C. Copy class
D. Copy object
Answer : Option A
Explaination / Solution:
No Explaination.


Workspace
Report
Q.3
When one class become the member of another class then it is called
A. Array of objects
B. Nested class
C. Copy class
D. Copy object
Answer : Option B
Explaination / Solution:
No Explaination.


Workspace
Report
Q.4
A constructor that accepts no parameter is called .
A. default constructor
B. parameterized constructor
C. copy constructor
D. destructor function
Answer : Option A
Explaination / Solution:
No Explaination.


Workspace
Report
Q.5
A constructor which can take arguments is called
A. default constructor
B. parameterized constructor
C. copy constructor
D. destructor function
Answer : Option B
Explaination / Solution:
No Explaination.


Workspace
Report
Q.6
A constructor having a reference to an already existing object of its own class is called
A. default constructor
B. parameterized constructor
C. copy constructor
D. destructor function
Answer : Option C
Explaination / Solution:
No Explaination.


Workspace
Report
Q.7
Removes the memory of an object which was allocated by the constructor at the time of creating a object.
A. default constructor
B. parameterized constructor
C. copy constructor
D. destructor function
Answer : Option D
Explaination / Solution:
No Explaination.


Workspace
Report
Q.8
In this method ,the parameterized constructor is invoked automatically whenever an object is created.
A. Implicit call
B. Explicit call
C. NULL call
D. All the above
Answer : Option A
Explaination / Solution:
No Explaination.


Workspace
Report
Q.9
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 .
A. Implicit call
B. Explicit call
C. NULL call
D. All the above
Answer : Option B
Explaination / Solution:
No Explaination.


Workspace
Report
Q.10
Characteristics of Destructors
A. The destructor cannot have arguments
B. It has no return type
C. They cannot be inherited
D. All the above
Answer : Option D
Explaination / Solution:
No Explaination.


Workspace
Report


  • «
  • Test: 1(current)
  • «