MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your C# Questions & Answers Constructors in Class knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which among the following is the correct statement: Constructors are used to? |
| A. | initialize the objects |
| B. | construct the data members |
| C. | initialize the objects & construct the data members |
| D. | none of the mentioned |
| Answer» B. construct the data members | |
| 2. |
Correct statement about constructors in C#.NET is? |
| A. | Constructors can be overloaded |
| B. | Constructors are never called explicitly |
| C. | Constructors have same name as name of the class |
| D. | All of the mentioned |
| Answer» E. | |
| 3. |
Number of constructors a class can define is? |
| A. | 1 |
| B. | 2 |
| C. | Any number |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |