Question:What is the purpose of the 'using' statement in C#?
A To include namespaces.
B To create a new variable.
C To declare a class.
D To manage resources and ensure disposal.
/28
+ Answer
D
+ ExplanationTo manage resources and ensure disposal.
Analysis: The using statement is used to ensure that IDisposable objects are disposed of properly, automatically releasing resources when they are no longer needed.