Multiple Choice
Which of the following statements is false
A) Typically resource-release code should be placed in a finally block to ensure that a resource is released, regardless of whether there were exceptions when the resource was used in the corresponding try block.
B) The using statement simplifies writing code in which you obtain a resource, use the resource in a try block and release the resource in a corresponding finally block.
C) A file-processing app could process a file with a using statement to ensure that the file is closed properly when it's no longer needed.
D) The resource in a using statement must be an object that implements the IDiscardable interface.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: An uncaught exception _.<br>A)is a possible exception
Q26: Which of the following statements is true?<br>A)
Q36: C# does not guarantee that a finally
Q37: The Message property of an exception is
Q39: The StackTrace property keeps track of all
Q42: If a finally block appears after the
Q43: The catch handler that catches an exception
Q44: In many cases,handling an exception allows a
Q45: A NullReferenceException is thrown when there's an
Q46: All exceptions cause the program to terminate