Exam 16: Exception Handling
Exam 1: Introduction to Computer and C++ Programming56 Questions
Exam 2: C++ Basics57 Questions
Exam 3: More Flow of Control45 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value53 Questions
Exam 5: Functions for All Sub Tasks54 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes52 Questions
Exam 7: Arrays48 Questions
Exam 8: Strings and Vectors69 Questions
Exam 9: Pointers and Dynamic Arrays39 Questions
Exam 10: Defining Classes61 Questions
Exam 11: Friends, Overloaded Operators, and Arrays in Classes56 Questions
Exam 12: Separate Compilation and Namespaces41 Questions
Exam 13: Pointers and Linked Lists64 Questions
Exam 14: Recursion48 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates35 Questions
Exam 18: Standard Template Library59 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.7/5
(31)
If the following function throws an unhandled exception, what happens?
void f1) throws );
(Short Answer)
4.9/5
(37)
The block of code that checks if an unusual situation or error occurs is called
(Multiple Choice)
4.8/5
(29)
If a function does not have an exception specification, then the function can thaw _______ exceptions.
(Short Answer)
4.9/5
(53)
If a function throw list specifies a base class type, then the function may also throw an exception of the ________ class type.
(Short Answer)
4.8/5
(31)
Given the following function definition, what happens if the function throws the exception?
Void f1 ) throw double)
{
If //some code here)
Throw 12;
}
(Multiple Choice)
4.8/5
(35)
Can the following function throw any unhandled exceptions?
void f1 );
(Short Answer)
4.9/5
(38)
If a throw list has multiple exceptions listed, they are separated by _________.
(Short Answer)
4.8/5
(41)
Which of the following would be a good reason for using inherited exception classes?
(Multiple Choice)
4.8/5
(34)
The catch block is the group of statements that handle an exception.
(True/False)
4.9/5
(35)
Showing 21 - 40 of 47
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)