nerdexam
Microsoft

98-372 · Question #198

You create an unmanaged object and use the object. You no longer need the object. What should you do?

The correct answer is C. Cast the object to its base type. See the full explanation below for the reasoning.

Question

You create an unmanaged object and use the object. You no longer need the object. What should you do?

Options

  • ASet the value of the variable to null.
  • BCache the variable's value in a static variable.
  • CCast the object to its base type.
  • DDispose the object to release memory.

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    83% (19)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice