QuestionQ22

Exception Handling

A user provides unexpected data to a program. Which functionality can a programmer use to display an understandable error message to the user?

  • A Casting
  • B Exception handling
  • C Dictionaries
  • D Regular expressions
Explanation

Exception handling catches errors caused by invalid or unexpected input and enables the program to present a meaningful, user-friendly error message.

Community Discussion

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