Exam 13: Exception Handling: A Deeper Look
Exam 1: Introduction to Computers, the Internet and Visual C#49 Questions
Exam 2: Dive Into Visual Studio Community25 Questions
Exam 3: Introduction to C# Apps41 Questions
Exam 4: Introduction to Classes,Objects,Methods and Strings50 Questions
Exam 5: Control Statements: Part 194 Questions
Exam 6: Control Statements: Part 266 Questions
Exam 7: Methods: a Deeper Look95 Questions
Exam 8: Arrays;Introduction to Exception Handling90 Questions
Exam 9: Introduction to Linq and Generic Collections27 Questions
Exam 10: Classes and Objects: A Deeper Look79 Questions
Exam 11: Object-Oriented Programming: Inheritance51 Questions
Exam 12: Object-Oriented Programming: Polymorphism62 Questions
Exam 13: Exception Handling: A Deeper Look58 Questions
Exam 14: GUI With Windows Forms: Part 164 Questions
Exam 15: GUI With Windows Forms: Part 273 Questions
Exam 16: Strings,Characters and Regular Expressions92 Questions
Exam 17: Files and Streams39 Questions
Exam 18: Searching and Sorting19 Questions
Exam 19: Data Structures28 Questions
Exam 20: Generics22 Questions
Exam 21: Collections35 Questions
Exam 22: Databases and LING25 Questions
Exam 23: Asynchronous Programming With Async and Await37 Questions
Exam 24: XML72 Questions
Exam 25: GUI With Windows Presentation Foundation60 Questions
Select questions type
When an exception occurs,the try block _______.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
A
There must be a catch clause for every expected exception type.
Free
(True/False)
4.7/5
(38)
Correct Answer:
False
The finally block is an ideal location for code that releases resources to prevent "resource leaks."
Free
(True/False)
4.8/5
(34)
Correct Answer:
True
Each Exception should have three constructors: A default constructor,one that receives a string,and one that receives a string and an exception.
(True/False)
4.8/5
(32)
Which of the following is false regarding the throw point of an exception
(Multiple Choice)
4.9/5
(30)
After an exception has occurred and a stack trace has been printed,the program may exit or continue executing,depending on the circumstances.
(True/False)
4.9/5
(28)
Runtime exceptions can usually be fixed by eliminating coding errors.
(True/False)
4.8/5
(31)
Consider the following code segment:
{
Var exampleObject = new ExampleClass();
Try
{
ExampleObject.SomeMethod();
}
Finally
{
If (exampleObject != null)
{
ExampleObject.Dispose();
}
}
}
Which of the following using statements is equivalent to the preceding code segment
(Multiple Choice)
4.8/5
(40)
In order to display the error message generated by an exception,you use:
(Multiple Choice)
4.9/5
(33)
The constructor method for an exception class should be overloaded to allow the customizing of the display message.
(True/False)
4.7/5
(36)
Programmer-defined exception classes typically should contain 3 constructors:
(Multiple Choice)
4.8/5
(37)
Exception handlers typically access objects in their try blocks to deter
mine the causes of the exceptions.
(True/False)
4.9/5
(34)
In C#,after an exception is handled,control resumes.This is known as the model of exception handling.
(Multiple Choice)
4.8/5
(30)
Showing 1 - 20 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)