Quiz on Functions

Test your knowledge of functions in Python.

1

What is the result when the following program is executed?

def getSum(y,z):
   mysum = y + z
   return mysum
 
getSum(5,6)
A)

It gives no output.

B)

(5+6)

C)

11

D)

56

Question 1 of 70 attempted

Get hands-on with 1200+ tech skills courses.