Explore topic-wise MCQs in Csharp.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.

1.

WHICH_OF_THE_FOLLOWING_STATEMENTS_IS_CORRECT_ABOUT_CONSTRUCTORS_IN_C.NET??$

A. A constructor cannot be declared as private
B. A constructor cannot be overloaded
C. A constructor can be a static constructor
D. None of the mentioned
Answer» D. None of the mentioned
2.

abc s1 = new abc(1);

A. abc s1 = new abc();
B. abc s2 = new abc(1.4f);
C. abc s2 = new abc(1, 1.4f);
Answer» B. abc s2 = new abc(1.4f);
3.

Correct way of defining constructor of the given class as and when objects of classes are created is:

A. ;
B. ;
Answer» B. ;