// Functions

Functions Quiz

// question 1 of 10
What is an argument?
// question 2 of 10
What does a function return without return?
// question 3 of 10
What is printed? def f(x): return x or False ; print(f(True))?
// question 4 of 10
What is printed? def greet(name): return ""Hi ""+name ; print(greet(""Ana""))?
// question 5 of 10
What is printed? def f(): print(""Hi"") ; print(f())?
// question 6 of 10
What is printed? def f(x): return not x ; print(f(True))?
// question 7 of 10
What is printed? def f(x): if x>0: return ""P"" else: return ""N"" ; print(f(-1))?
// question 8 of 10
What is printed? def f(x,y): return x/y ; print(f(8,2))?
// question 9 of 10
What is printed? def f(x): return type(x) ; print(f(5))?
// question 10 of 10
What is printed? def f(a=1,b=2): return a+b ; print(f())?