Saved Bookmarks
This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Select wrong statement about destructor in C#?(a) A class can have one destructor only(b) Destructors cannot be inherited or overloaded(c) Destructors can have modifiers or parameters(d) All of the mentioned |
|
Answer» The correct choice is (c) Destructors can have modifiers or parameters Explanation: None. |
|
| 2. |
Operator used to free the memory when memory is allocated?(a) new(b) free(c) delete(d) none of the mentioned |
|
Answer» Right option is (c) delete Easiest explanation - ‘New’ is used to allocate memory in the constructors. Hence, we should use ‘delete’ to free that memory. |
|