1 |
Which of the following steps takes place when function is called: |
- A. The control moves to the function that is called
- B. All statements in the function body are executed
- C. The control returns back to the calling funciton
- D. All of these
|
2 |
The name of actual and formal parameters: |
- A. May or may not be same
- B. Must be same
- C. Must be different
- D. Must be in lower case
|
3 |
Which of the following is type of function available in C language? |
- A. User-defined
- B. Build-in
- C. Subprogram
- D. Both a and b
|
4 |
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
|
5 |
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
|
6 |
Function define can be written: |
- A. Before main() function
- B. After main() function
- C. in a separate file
- D. All of these
|
7 |
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)
|
8 |
A variable declaration outside any function is known as: |
- A. Global variable
- B. Local variable
- C. External variable
- D. Static variable
|
9 |
Which statement is used by a function use to return a value? |
- A. Give
- B. Return
- C. Continue
- D. Send
|
10 |
What is the variable name that is used by a function to receive passed values? |
- A. Funciton
- B. Parameter
- C. Expression
- D. Constant
|