Exam 14: Exception Handling
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
The class ____ is designed to deal with errors that can be detected only during program execution.
Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
C
In C++,any class can be considered an exception class.
Free
(True/False)
4.7/5
(30)
Correct Answer:
True
In a sequence of try/catch blocks,the last catch block of that sequence should be ____.
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
A
Which of the following classes is derived from the class runtime_error?
(Multiple Choice)
4.9/5
(33)
The function ____ of the class exception returns a string containing an appropriate message.
(Multiple Choice)
4.7/5
(37)
When an exception is thrown in a function,the function-call stack is ____ so that the exception can be caught in the next try/catch block.
(Multiple Choice)
4.8/5
(43)
The ____________________ of the catch block parameter specifies the type of exception that the catch block can catch.
(Short Answer)
4.8/5
(33)
When an exception is thrown in a function,the function can do the following: ____________________; partially process the exception and throw the same exception or a new exception; or throw a new exception.
(Short Answer)
4.9/5
(38)
Throwing an exception is typically done using the ____________________ statement.
(Short Answer)
4.9/5
(46)
All derived classes of the class exception override the function ____________________ to issue their own error messages.
(Short Answer)
4.8/5
(34)
A(n)____________________ block specifies the type of exception it can catch and contains an exception handler.
(Short Answer)
4.7/5
(46)
The class ____ is designed to deal with illegal arguments used in a function call.
(Multiple Choice)
4.8/5
(36)
The heading of a try block can contain ellipses in place of a parameter.
(True/False)
4.8/5
(36)
If you want to include members in your exception class,you typically include the function ____.
(Multiple Choice)
4.7/5
(41)
If no exception is thrown in a try block,all catch blocks associated with that try block are ignored.
(True/False)
4.8/5
(40)
A catch block specifies the type of exception it can catch and immediately terminates the program.
(True/False)
4.8/5
(40)
A(n)____ is an occurrence of an undesirable situation that can be detected during program execution.
(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)