Functions — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
Which keyword defines a function in Python?
Afunction
Bdef
Cfunc
Ddefine
Question 2
In def power(base, exp=2), what is exp=2?
AA keyword argument
BA default parameter
CA return value
DA global variable
Question 3
What does a function return if it has no return statement?
A0
BAn empty string
CNone
DAn error
Question 4
To modify a global variable from inside a function, you must…
ADo nothing special
BDeclare it with the global keyword
CReturn it
DUse a default parameter
Question 5
What does return min(nums), max(nums) return?
AOnly the minimum
BTwo separate functions
CA tuple of both values
DNone