1 |
Which of the following is true for return statement in a function? |
It can return one value only
It can return integer value
It cannot return any value
It cannot be used in a function
|
2 |
A type of functions written by the programmer is known as: |
User-defined
Subprograms
Subroutines
Built-in function
|
3 |
Local variables are also called: |
Automatic variables
Normal variables
Global variables
Basic variables
|
4 |
Which of the following looks for the prototypes of function used in a program? |
Linker
Loader
Compiler
Parser
|
5 |
Which of the following is true about a function call? |
Stops the execution of the program
Transfer control to the called function
Transfer control to the main function
Resumes the execution of the function
|
6 |
A variable declaration outside any function is known as: |
Global variable
Local variable
External variable
Static variable
|
7 |
A variable declared inside a function is known as: |
Local variable
Global variable
Automatic variable
A and C
|
8 |
The scope of a variable refers to its: |
Lengh
Name
Accessibility
Data type
|
9 |
Which statement is used by a function use to return a value? |
Give
Return
Continue
Send
|
10 |
Multiple arguments to a function are separated by: |
Comments
Semicolons
Colons
Commas
|