Computer Science
What is the default return value for a function that does not return any value explicitly ?
- None
- int
- double
- null
Python Functions
5 Likes
Answer
None
Reason — The default return value for a function that does not return any value explicitly is None
.
Answered By
2 Likes
Related Questions
What is the area of memory called, which stores the parameters and local variables of a function call ?
- a heap
- storage area
- a stack
- an array
Find the errors in following function definitions :
- 1.
def main() print ("hello")
- 2.
def func2(): print(2 + 3)
- 3.
def compute(): print (x * x)
- 4.
square (a) return a * a
Which of the following items are present in the function header ?
- function name only
- both function name and parameter list
- parameter list only
- return value
Which of the following keywords marks the beginning of the function block ?
- func
- define
- def
- function