nerdexam
Microsoft

98-372 · Question #151

98-372 Question #151: Real Exam Question with Answer & Explanation

Sign in or unlock 98-372 to reveal the answer and full explanation for question #151. The question stem and answer options stay visible for context.

Question

You create a class that uses unmanaged resources. You need to ensure that users of the class can explicitly release resources when the instance of the class is no longer required. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AImplement the IDisposable interface.
  • BUse a class destructor that is called from within the Dispose method.
  • CUse a class destructor that calls the Kill method.
  • DInherit from the WeakReference class.

Unlock 98-372 to see the answer

You've previewed enough free 98-372 questions. Unlock 98-372 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 98-372 Practice
You create a class that uses unmanaged resources. You need to... | 98-372 Q#151 Answer | NerdExam