Python - MCQ
Multiple Choice Questions
Python - Multiple Choice Questions (MCQ) - Python functions, Modules and Packages - Set 19
1. Which keyword is used for function?
A). define
B). fun
C). def
D). function
View Answer
Correct: C
2. Which of the following items are present in the function header?
A). function name
B). parameter list
C). return value
D). Both A and B
View Answer
Correct: D
3. What is called when a function is defined inside a class?
A). class
B). function
C). method
D). module
View Answer
Correct: C
4. If the return statement is not used inside the function, the function will return:
A). None
B). 0
C). Null
D). Arbitary value
View Answer
Correct: A
5. What is a recursive function?
A). A function that calls other function.
B). A function which calls itself.
C). Both A and B
D). None of the above
View Answer
Correct: B