developmentor - a developer services company				  
				      
   Modules

Exceptions


1. True or false: exceptions may be generated by the runtime or by user-defined code.
True
False

2. Which construct is used to handle exceptions that might be raised within a certain section of code?
try/catch
try/finally

3. Which construct is used to ensure that a certain section of code always runs whenever execution leaves a designated piece of code, whether due to an exception or not?
try/catch
try/finally

4. True or false: more than one catch handler can be specified for the same try block.
True
False

5. True or false: the catch and finally constructs may be associated with the same try block.
True
False

6. True or false: the CLR allows custom exceptions to be defined.
True
False

This material is excerpted from the Programming C# course offered by DevelopMentor.