Question: Which statement describes a Dispose method?

  1. It defines an execution environment for program code and manages the CLR
  2. It belongs to the IDisposable interface and is used to free resources, such as network connection and files.
  3. It is partially method-compiled code library for use in deployment, versioning, and security.
  4. It is used for encapsulation of collections tied to functions of a class and object.

Answer: The correct answer of the above question is Option B:It belongs to the IDisposable interface and is used to free resources, such as network connection and files.