Exam 12: Handling Exceptions
Exam 1: An Overview of Object-Oriented Programming and C++55 Questions
Exam 2: Evaluating C Expressions51 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Performing Loops51 Questions
Exam 5: Understanding Arrays, Strings and Pointers55 Questions
Exam 6: Using C++ Functions51 Questions
Exam 7: Using Classes56 Questions
Exam 8: Class Features and Design Issues53 Questions
Exam 9: Understanding Friends and Overloading Operators52 Questions
Exam 10: Understanding Inheritance53 Questions
Exam 11: Using Templates54 Questions
Exam 12: Handling Exceptions51 Questions
Exam 13: Advanced Input and Output55 Questions
Exam 14: Advanced Topics53 Questions
Select questions type
Be careful when writing an exception specification using a(n) ____ because any type might eventually be instantiated.
(Multiple Choice)
4.8/5
(33)
When an object-oriented program detects an error within a function, the function should send an error object to the calling function, or ____________________ an exception.
(Short Answer)
4.8/5
(34)
____ an exception is the act of explicitly passing a caught exception along to a higher-level catch block.
(Multiple Choice)
4.9/5
(40)
Match each term with the correct statement below.
Premises:
part of the C++ Standard library
Responses:
exception handling
try block
exception specification
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(32)
A general rule of ____ programming is that a function should be able to determine an error situation, but not necessarily take action on it.
(Multiple Choice)
4.7/5
(32)
You throw an exception by using the keyword throw followed by ____ object.
(Multiple Choice)
4.8/5
(25)
When a function throws an exception, the function is no longer ____.
(Multiple Choice)
4.8/5
(44)
Visual C++ departs from the ____ standard in its implementation of exception specifications.
(Multiple Choice)
4.8/5
(33)
To use the set_new_handler() function, you should insert ____ at the top of your program file.
(Short Answer)
4.8/5
(30)
Match each term with the correct statement below.
Premises:
forces a program to end
Responses:
exception specification
default exception handler
catch block
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(37)
Showing 41 - 51 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)