1 |
A variable declared inside a function is known as: |
- A. Local variable
- B. Global variable
- C. Automatic variable
- D. A and C
|
2 |
Function define can be written: |
- A. Before main() function
- B. After main() function
- C. in a separate file
- D. All of these
|
3 |
What is the variable name that is used by a function to receive passed values? |
- A. Funciton
- B. Parameter
- C. Expression
- D. Constant
|
4 |
Which of the following is NOT a valid function declaration? |
- A. int ave3(int a, int b, int c)
- B. int 3ave(int a, int b, int c)
- C. int ave3(int, int, int)
- D. int ave_3(int a1, int b2, int c3)
|
5 |
Which statement is used by a function use to return a value? |
- A. Give
- B. Return
- C. Continue
- D. Send
|
6 |
Function declaration consists of: |
- A. Function name
- B. Function return type
- C. Number and types of parameters
- D. All of these
|
7 |
Which of the following is incorrect? |
- A. A function can call another function
- B. A function can be called many times in a program
- C. A function can return values input by the user
- D. A function must at least one variable parameter
|
8 |
Which of the following is true about a function call? |
- A. Stops the execution of the program
- B. Transfer control to the called function
- C. Transfer control to the main function
- D. Resumes the execution of the function
|
9 |
The statement that activities a function is known as: |
- A. Function call
- B. Function output
- C. Function design
- D. Function definition
|
10 |
Which of the following is true for return statement in a function? |
- A. It can return one value only
- B. It can return integer value
- C. It cannot return any value
- D. It cannot be used in a function
|