Deck 14: Exception Handling
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/13
Play
Full screen (f)
Deck 14: Exception Handling
1
The statements that generate an exception are placed in a(n) ____________________ block.
try
2
A try block is followed by one or more ____________________ blocks.
catch
3
If an exception is thrown in a try block, the remaining statements in that block are executed.
False
4
A catch block with ____________________ is designed to catch any type of exception.
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
5
What members do you typically include in a user-defined exception class?
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
6
Constructors with parameters in a user-defined exception class allow users to create their own error messages.
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
7
In C++, all user-defined or built-in exceptions must be derived from the exception class.
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
8
A catch block can rethrow the same exception that it has caught.
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
9
What does these terms refer to:
- catch block:
- catch block:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
10
What does these terms refer to:
- catch block parameter:
- catch block parameter:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
11
What does these terms refer to:
- class exception:
- class exception:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
12
What does these terms refer to:
- throw statement:
- throw statement:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:
- try block:
- try block:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck