GIAC
GSSP-.NET · Question #32
(Topic 1) What is the main purpose of a try-catch block?
The correct answer is C. To catch and handle an exception generated by an executable code. See the full explanation below for the reasoning.
Question
- (Topic 1)
What is the main purpose of a try-catch block?
Options
- ATo obtain and use resources that are being caught.
- BTo signal the occurrence of an exception during the program execution.
- CTo catch and handle an exception generated by an executable code.
- DTo ensure that the necessary cleanup of external resources is done immediately.
How the community answered
(58 responses)- A3% (2)
- B7% (4)
- C76% (44)
- D14% (8)
Community Discussion
No community discussion yet for this question.