// Functions

Functions Quiz

// question 1 of 10
What is printed? def f(x): return x or False ; print(f(True))?
// question 2 of 10
What happens with int(""abc"")?
// question 3 of 10
What is printed? def f(x): return x.upper() ; print(f(""hi""))?
// question 4 of 10
What is printed? def f(x): return int(x) ; print(f(""7""))?
// question 5 of 10
What is printed? def cube(x): return x**3 ; print(cube(2))?
// question 6 of 10
What is printed? def f(x): return x[0] ; print(f(""abc""))?
// question 7 of 10
What is printed? def f(a=1,b=2): return a+b ; print(f(5))?
// question 8 of 10
What is printed? def f(a,b): print(a+b) ; f(2,3)?
// question 9 of 10
What is printed? def add(a
// question 10 of 10
What happens if you call an undefined function?