Robotics & Artificial Intelligence
Which of the following statements is not true for a function in Python?
- It is a program module.
- It is reusable piece of a program.
- It is not a program module.
- All of the above
Python Functions
1 Like
Answer
It is not a program module.
Reason — A function is a program module (a part of the program) used simultaneously at different instances to perform a specific task. It is also a reusable piece of code. Therefore, the statement "It is not a program module" is not true for a Python function.
Answered By
1 Like
Related Questions
In Python, the keyword used for defining a function is …………..
- func
- function
- def
- import
Which of the following are the two main parts of every function in Python?
- Function header and function body
- Function block and main block
- Function head and function tail
- None of the above
What is the default return value when a function does not return any value explicitly?
- null
- void
- empty
- None
When the arguments and parameters are with same variable names, they are known as:
- default arguments
- keyword arguments
- positional arguments
- None of them