Page 1 - HA
P. 1
Home Assignment
Computer Science
Class – XI
Topic: Working with Functions
A) Answer the following questions:
1. What is the default return value for a function that does not return any value explicitly?
A. None
B. int
C. double
D. public
E. null
2. Which of the following items are present in the function header?
A. function name
B. function name and parameter list
C. parameter list
D. return value
3. Which of the following enclose the input parameters or arguments of a function?
A. brackets
B. parentheses
C. curly braces
D. quotation marks
4. Which of the following keywords marks the beginning of the function block?
A. fun
B. define
C. def
D. function
5. What is the name given to that area of memory, where the system stores the parameters and
local variables of a function call?
A. a heap
B. storage area
C. a stack
D. an array
6. Which of the following function definition does return any value?
A. a function that prints integers from 1 to 100
B. a function that returns a random integer from 1 to 100
C. a function that checks whether the current second is an integer from 1 to 100
D. a function that converts an uppercase letter to lowercase
7. Which of the following statements correctly represent the function body in the given code
snippet?