Vidyalelo
Python · Q32

Exception Handling in Python

Programming · Python · question 32

Q32

What is the output of the following code:try: x = 10 / 0except ZeroDivisionError: print("Error!")finally: print("Finally!")

A.
Error! Finally!
Answer
B.
Finally!
C.
Error!
D.
An error will occur

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board