Table of Contents
ToggleQuestion 2
Which of the following items are present in the function header??
- function name
- parameter list
- def keyword
- All the above
4. All the above
Question 3
What is a recursive function??
- A function that calls another function.
- A function that calls to itself.
- Both A and B
- None of the above
2. A function that calls to itself.
Question 5
If the return statement is not used inside the function, the function will return:?
- None
- Null
- Arbitrary val
- None
Question 6
In which part of memory do the system store the parameters and local variables of a function call??
- heap
- stack
- Uninitialized data segment
- None of the above
2. stack
Question 7
Which of the following function headers is correct??
- def try(a = 2, b = 3, c)
- def try(a = 2, b, c = 3)
- def try(a, b = 2, c = 3)
- def try(a, b, c = 3, d)
Question 8
Which of the following is the use of function in python??
- Functions are reusable pieces of programs
- you can also create your own functions
- All of the mentioned
4. All of the mentioned
If you find anything wrong in this Answer Key, feel free to reach us in the comment section.