Q-1: What is an exception? Exceptions are abnormal conditions that occurs during the program execution and distru…