QuestionQ6

Exception Handling

What occurs when a programmer does not implement exception handling in a program and the program encounters an unforeseen error condition?

  • A The interpreter will ignore the error and move to the next line.
  • B The application will print a warning to the console and continue to the end
  • C The computer will ג€fuzzג€ input until it finds one that generates no error
  • D The application will terminate immediately or after resources are exhausted
Explanation

An unexpected error that is not caught and handled becomes an unhandled exception or fatal error, which normally stops the application rather than allowing normal execution to continue.

Community Discussion

No comments yet. Be the first to start the discussion!