Vidyalelo
Python · Q58

Formatting and Decorators

Programming · Python · question 58

Q58

What will be the output of the following Python function? def f(p, q): return p%q f(0, 2) f(2, 0)

A.
0
0
B.
Zero Division Error
Zero Division Error
C.
0
Zero Division Error
Answer
D.
Zero Division Error
0

Answer: Option C

Solution

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