Which keyword is used to create a constant object?
Constant
const
final
just object name and parameters are needed.
What is the sign used in the declaration of destructor ?
!
?
#
~
Which function is invoked automatically to destroy an object?
Destructor function
Constructor function
Inline function
Friend function
What is the return type that is used for all constructors ?
Void
int
float
No return type
What will happen in dynamic construction of objects?
Creating objects dynamically.
Allocating memory of objects dynamically.
Dynamic object construction.
Static object construction.
Which of the following is correct for invoking a constructor-" read(int x,int y){ };" ?
read ob;
read (2,3);
read ob(2.3,3);
read ob(2,3);
Which of the following cannot be inherited ?
Public data members
Constructor functions
Void functions
Overloaded + operators
Which of the following will make the invocation of the object constructor-"read(int x,int y=3){ }" ?
read ob();
read ob(2);
read ob(2.0);
none of these.
Which constructor function is designed to copy objects of the same class type ?
Create constructor
Object constructor
Copy constructor
Dynamic constructor
Which of the following is an advantage of using destructors?
Avoid confusions.
Reduce complexity.
Ensures reusability.
Releases memory space.