Module 4
What is the output of the following snippet? tup = (1, ) + (1, ) tup = tup + tup print(len(tup))
4
Which of the following statements is false?
the return keywords forces the function to restart its execution
What is the output of the following snippet? def fun(in=2, out=3) : return in * out print(fun(3))
the snippet is erroneous
A function definition:
Must be placed before the first invocation
The none keyword designates:
a None value
A function definition starts with the keyword:
def
A variable defined outside a function:
may be read, but not written (something more is needed to do so)
A function parameter is a kind of variable accessible:
only inside the function
A way of argument passing in which the order of the arguments determines the initial parameters' values is referred to as:
positional
If a list is passed into a function as an argument, deleting any of its elements inside the function using the del instruction:
will affect the argument