Deck 14: Exception Handling

Full screen (f)
exit full mode
Question
The statements that generate an exception are placed in a(n) ____________________ block.
Use Space or
up arrow
down arrow
to flip the card.
Question
A try block is followed by one or more ____________________ blocks.
Question
If an exception is thrown in a try block, the remaining statements in that block are executed.
Question
A catch block with ____________________ is designed to catch any type of exception.
Question
What members do you typically include in a user-defined exception class?
Question
Constructors with parameters in a user-defined exception class allow users to create their own error messages.
Question
In C++, all user-defined or built-in exceptions must be derived from the exception class.
Question
A catch block can rethrow the same exception that it has caught.
Question
What does these terms refer to:

- \gg catch block:
Question
What does these terms refer to:

- \gg catch block parameter:
Question
What does these terms refer to:

- \gg class exception:
Question
What does these terms refer to:

- \gg throw statement:
Question
What does these terms refer to:

- \gg try block:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/13
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg try block:
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 13 flashcards in this deck.