Q. Categories the following as syntax error, logical error or runtime error:

(a) 25 / 0

(b) num1 = 25; num2 = 0; num1/num2


Answer:-

Option (a) and (b) both are Runtime Error that is ZeroDivisionError.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post