What is the output of the following Python statements?
def recurse(a): if (a == 0): print(a) else: recurse(a)
recurse(0)
Select one:
a.
0
b.
1
c.
no output
d.
RuntimeError: maximum recursion depth exceeded
Give this one a try later!
, 0
What do we call the value provided to a function when the function is called (which is
assigned to the corresponding parameter in the function)?
Select one:
a.
argument
b.
return value
c.
method
d.
the special value None
e.
global variable
Give this one a try later!
argument
Python functions may or may not take arguments and may or may not return a result.
Select one:
True
False
Give this one a try later!
True
def recurse(a): if (a == 0): print(a) else: recurse(a)
recurse(0)
Select one:
a.
0
b.
1
c.
no output
d.
RuntimeError: maximum recursion depth exceeded
Give this one a try later!
, 0
What do we call the value provided to a function when the function is called (which is
assigned to the corresponding parameter in the function)?
Select one:
a.
argument
b.
return value
c.
method
d.
the special value None
e.
global variable
Give this one a try later!
argument
Python functions may or may not take arguments and may or may not return a result.
Select one:
True
False
Give this one a try later!
True