Correct Questions: 0 | Wrong Questions: 0 | Total Score: 0 Points

Can a constructor have access modifier ?

Yes
No
It can be only public
It can be only Internal


Check Answer

Can constructors be inherited ?

Yes
No
To only one level
-


Check Answer

What is default access modifier of constructor ?

Constructors do not have access modifier
Public
Private
Internal


Check Answer

Does memory gets allocated when constructor is called ?

Yes
No
-
-


Yes using new operator.

Check Answer

Can a constructor call itself by using this keyword ?

Yes
No
-
-


It will through an compile time error.

Check Answer

Can constructors be overloaded ?

Yes
No
-
-


Check Answer

Which of the following statements is correct for constructors ?

C# provides a copy constructor
Static constructors can use optional arguments
A constructor can be used to set default values and limit instantiation.
A class can have more than one destructor


Check Answer

Can static procedures access instance data ?

Yes
No
-
-


Check Answer

How many times can a constructor be called during lifetime of the object ?

As many times as we call it
Only once
Any number of times before the object gets garbage collected
Depends upon a Project Setting made in Visual Studio.NET


Check Answer

Which of the following statements are correct about static functions ?

Static functions are invoked using objects of a class
Static functions can access static data as well as instance data
Static functions are outside the class scope
Static functions are invoked using class


Check Answer
Play Again