1 |
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
|
2 |
Multiple arguments to a function are separated by: |
- A. Comments
- B. Semicolons
- C. Colons
- D. Commas
|
3 |
The scope of a variable refers to its: |
- A. Lengh
- B. Name
- C. Accessibility
- D. Data type
|
4 |
A variable declared inside a function is known as: |
- A. Local variable
- B. Global variable
- C. Automatic variable
- D. A and C
|
5 |
What is the variable name that is used by a function to receive passed values? |
- A. Funciton
- B. Parameter
- C. Expression
- D. Constant
|
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 |
The first line of function definition is known as: |
- A. Function header
- B. Function body
- C. Arguments
- D. Return type
|
9 |
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
|
10 |
Which of the following looks for the prototypes of function used in a program? |
- A. Linker
- B. Loader
- C. Compiler
- D. Parser
|