Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What happens if your program generates an exception and there\'s no code written

ID: 3919472 • Letter: W

Question


What happens if your program generates an exception and there's no code written to handle it?
Use letters in alphabetical order to select options

A
Nothing happens; the exception is ignored and the program continues.

B
Python gives you an error when you attempt to save the source code file.

C
Python gives you a warning when the exception occurs during program execution, and the program continues running.

D
Python gives you an error message when the exception occurs during program execution, and the program stops.

Explanation / Answer

Answer: D

Python gives you an error message when the exception occurs during program execution, and the program stops.

explanation:

when there no handling code...then an error message spit out,,,and program stops..

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote