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 throw list specifies a base class type,then the function may also throw an exception of the ________ class type.
Free
(Short Answer)
4.9/5
(36)
Correct Answer:
derived
In a try block,the throw statement is always executed.
Free
(True/False)
4.8/5
(34)
Correct Answer:
False
If class A is derived from class B,and a virtual function in class B throws an exception,then the overridden version of that function in class A must
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
B
Can the following function throw any unhandled exceptions?
void f1 );
(Short Answer)
4.8/5
(42)
The block of code that checks if an unusual situation or error occurs is called
(Multiple Choice)
4.8/5
(36)
If the following function throws an unhandled exception,what happens?
void f1);
(Essay)
4.9/5
(38)
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.9/5
(44)
If a function does not have an exception specification,then the function can thaw _______ exceptions.
(Short Answer)
4.8/5
(42)
If you have a function that might throw an exception and some programs that use that function might want to handle that exception differently,you should
(Multiple Choice)
4.8/5
(27)
If a function throws an exception,it must be caught inside that function.
(True/False)
4.8/5
(40)
A throw statement passes which type of value to the catch block?
(Short Answer)
4.9/5
(45)
Showing 1 - 20 of 47
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)