MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your C# Questions & Answers Destructors in Class knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the return type of destructor? |
| A. | int |
| B. | void |
| C. | float |
| D. | none of the mentioned |
| Answer» E. | |
| 2. |
Operator used to free the memory when memory is allocated? |
| A. | new |
| B. | free |
| C. | delete |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 3. |
The method called by clients of a class to explicitly release any resources like network, connection, open files etc. When the object is no longer required? |
| A. | Finalize() |
| B. | End() |
| C. | Dispose() |
| D. | Close() |
| Answer» D. Close() | |