SY0-301 · Question #367
A program displays: ERROR: this program has caught an exception and will now terminate. Which of the following is MOST likely accomplished by the program's behavior?
The correct answer is A. Operating system's integrity is maintained. When a program catches an unhandled exception and terminates gracefully rather than crashing unpredictably or continuing in a corrupted state, it protects the underlying operating system from memory corruption, resource leaks, or undefined behavior that could destabilize the…
Question
A program displays:
ERROR: this program has caught an exception and will now terminate. Which of the following is MOST likely accomplished by the program's behavior?
Options
- AOperating system's integrity is maintained
- BProgram's availability is maintained
- COperating system's scalability is maintained
- DUser's confidentiality is maintained
How the community answered
(30 responses)- A70% (21)
- B7% (2)
- C3% (1)
- D20% (6)
Explanation
When a program catches an unhandled exception and terminates gracefully rather than crashing unpredictably or continuing in a corrupted state, it protects the underlying operating system from memory corruption, resource leaks, or undefined behavior that could destabilize the OS. This is a fail-safe design pattern: terminate cleanly to prevent broader damage. Program availability is actually harmed because the program exits. Scalability and confidentiality are not directly impacted by graceful exception handling. The key concept here is that a controlled, graceful shutdown after catching a fatal error preserves OS stability and integrity - the OS keeps running safely even though the application stops.
Topics
Community Discussion
No community discussion yet for this question.