Which of the following enables automatic initialization of object?
new keyword
delete keyword.
constructor.
destructor.
When an object is created which function will be automatically invoked ?
Friend function
Destructor function
Static function
Constructor function
Which of the following gets called when an object goes out of scope ?
Constructor
Destructor
Main
Virtual function
Which function is invoked automatically to destroy an object?
Inline function
What is called default constructor ?
A constructor that accepts one parameter
A constructor that accepts two parameters
A constructor that accepts no parameter
A constructor that accepts three parameters
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 used in copy constructor to receive its arguments ?
Either pass-by-value or pass-by-reference
Only pass-by-value
Only pass-by-reference
Only pass-by-address
Which of the following statement is correct ?
Destructor has the same name as that of the class with a tilde symbol.
Constructor has the same name as that of the class.
Both a and b
Destructor has the same name as the first member function of the class.
What do you meant by dynamic initialization of object?
Initial value of object passed at compile time.
Initial value of object passed at run time.
No initial value needed.
static initialization of objects.
Which keyword is used to create a constant object?
Constant
const
final
just object name and parameters are needed.