Which of the following ways can you proactively clean up a database connection's resources?

  1. Execute the DbConnection object's Cleanup method.

  2. Assign Nothing (C# null) to the variable that references the DbConnection object.

  3. Execute the DbConnection object's Close method.

  4. Execute the DbConnection object's Disconnect method.


Correct Option: C

Find more quizzes: