Exam 16: Exception Handling
Exam 1: Introduction to Computer and C Programming55 Questions
Exam 2: C++ Basics54 Questions
Exam 3: More Flow of Control44 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value51 Questions
Exam 5: Functions for All Sub Tasks53 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes51 Questions
Exam 7: Arrays34 Questions
Exam 8: Strings and Vectors63 Questions
Exam 9: Pointers and Dynamic Arrays40 Questions
Exam 10: Defining Classes50 Questions
Exam 11: Friends, overloaded Operators, and Arrays in Classes49 Questions
Exam 12: Separate Compilation and Namespaces38 Questions
Exam 13: Pointers and Linked Lists51 Questions
Exam 14: Recursion43 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates33 Questions
Exam 18: Standard Template Library57 Questions
Select questions type
If a function throws an exception and does not catch it,then the function definition and declaration should have _______.
(Short Answer)
4.8/5
(38)
If a throw list has multiple exceptions listed,they are separated by _________.
(Short Answer)
4.9/5
(36)
Which of the following function declaration correctly specifies that two types of exceptions are thrown?
(Multiple Choice)
4.8/5
(42)
Which of the following would be a good reason for using inherited exception classes?
(Multiple Choice)
4.9/5
(37)
If the following function will throw a string exception,then
Void myFunction );
(Multiple Choice)
4.8/5
(25)
The following catch block catches all __________ exceptions.
catch string e)
{
}
(Short Answer)
4.9/5
(34)
The following function does not throw any unhandled exceptions
void f1 )throw );
(True/False)
4.8/5
(29)
Which of the following is not a valid reason for using exception handling?
(Multiple Choice)
4.9/5
(27)
Which type of exception is thrown if a call to the new operator fails?
(Multiple Choice)
4.9/5
(41)
The catch block is the group of statements that handle an exception.
(True/False)
4.9/5
(28)
When an unusual situation or error occurs,then the ________ statement is executed.
(Multiple Choice)
4.9/5
(43)
If some part of your program or any library functions that are called)throw an exception,then if this exception is not handled in your code,your program will _____.
(Short Answer)
4.8/5
(38)
Showing 21 - 40 of 47
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)