14.
How are default arguments specified in the function heading?

15.
How are variable length arguments specified in the function heading?

16.
Which type of copy is shown in the following python code?
l1=[[10, 20], [30, 40], [50, 60]]
ls=list(l1)
ls
[[10, 20], [30, 40], [50, 60]]

17.
What will be the output of the following Python code?
odd=lambda x: bool(x%2)
numbers=[n for n in range(10)]
print(numbers)
n=list()
for i in numbers:
    if odd(i):
        continue
    else:
        break

19.
What will be the output of the following code:
def multiply(a, *args):
  result = a
  for num in args:
    result *= num
  return result
result = multiply(2, 3, 4)
print(result)

20.
What happens if a local variable exists with the same name as the global variable you want to access?

Read More Section(Functions in Python)

Each Section contains maximum 100 MCQs question on Functions in Python. To get more questions visit other sections.