Exam 14: Exception Handling
Exam 1: An Overview of Computers and Programming Languages52 Questions
Exam 2: Basic Elements of C++76 Questions
Exam 3: Inputoutput33 Questions
Exam 4: Control Structures I Selection24 Questions
Exam 5: Control Structures II Repetition25 Questions
Exam 6: User-Defined Functions47 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type12 Questions
Exam 8: Arrays and Strings33 Questions
Exam 9: Records Structs10 Questions
Exam 10: Classes and Data Abstraction38 Questions
Exam 11: Inheritance and Composition15 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists40 Questions
Exam 13: Overloading and Templates21 Questions
Exam 14: Exception Handling13 Questions
Exam 15: Recursion18 Questions
Exam 16: Linked Lists17 Questions
Exam 17: Stacks and Queues34 Questions
Exam 18: Searching and Sorting Algorithms28 Questions
Exam 19: Binary Trees26 Questions
Exam 20: Graphs53 Questions
Exam 21: Standard Template Library STL28 Questions
Select questions type
What does these terms refer to:
- catch block parameter:
Free
(Short Answer)
4.8/5
(33)
Correct Answer:
becomes a placeholder for the value thrown by storing that value when an exception occurs
What does these terms refer to:
- class exception:
Free
(Short Answer)
4.9/5
(37)
Correct Answer:
the base class of the exception classes provided by C++
A catch block with ____________________ is designed to catch any type of exception.
Free
(Short Answer)
4.8/5
(35)
Correct Answer:
ellipses, …
In C++, all user-defined or built-in exceptions must be derived from the exception class.
(True/False)
4.9/5
(36)
A try block is followed by one or more ____________________ blocks.
(Short Answer)
4.8/5
(42)
What members do you typically include in a user-defined exception class?
(Short Answer)
4.8/5
(39)
If an exception is thrown in a try block, the remaining statements in that block are executed.
(True/False)
4.9/5
(38)
Constructors with parameters in a user-defined exception class allow users to create their own error messages.
(True/False)
4.8/5
(37)
A catch block can rethrow the same exception that it has caught.
(True/False)
5.0/5
(36)
The statements that generate an exception are placed in a(n) ____________________ block.
(Short Answer)
4.9/5
(33)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)