Function in Python MCQs Exercise I


Ques 1 Function


What is the output of the following Python Code?

def calculate(a, b):
   return b if a == 0 else solve(b % a, a)
res=calculate(5,10)
print(res)

  a) 10
  b) 5
  c) 15
  d) 1


b is the correct option