Computer Science
What is the name given to that area of memory, where the system stores the parameters and local variables of a function call ?
- a heap
- storage area
- a stack
- an array
Python Functions
1 Like
Answer
a stack
Reason — A stack is the area of memory, which stores the parameters and local variables of a function call.
Answered By
2 Likes
Related Questions
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
Pick one the following statements to correctly complete the function body in the given code snippet.
def f(number): #Missing function body print(f(5))
- return "number"
- print(number)
- print("number")
- return number
Which of the following function headers is correct ?
- def f(a = 1, b):
- def f(a = 1, b, c = 2):
- def f(a = 1, b = 1, c = 2):
- def f(a = 1, b = 1, c = 2, d):