1. | Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? | |||||||
| ||||||||
2. What are the types of linkages? | ||||||||
| ||||||||
3. Which of the following special symbol allowed in a variable name? | ||||||||
| ||||||||
4. | Is there any difference between following declarations?
| |||||||
| ||||||||
5. How would you round off a value from 1.66 to 2.0? | ||||||||
| ||||||||
6. By default a real number is treated as a | ||||||||
|
7. | Which of the following is not user defined data type?
| |||||||
| ||||||||
8. Is the following statement a declaration or definition? extern int i; | ||||||||
| ||||||||
9. Identify which of the following are declarations |
1 : | extern int x; |
2 : | float square ( float x ) { ... } |
3 : | double pow(double, double); |
A. | 1 | B. | 2 |
C. | 1 and 3 | D. | 3 |
10. In the following program where is the variable a getting defined and where it is getting declared?
#include<stdio.h>
int main()
{
extern int a;
printf("%d\n", a);
return 0;
}
int a=20;
A. | extern int a is declaration, int a = 20 is the definition |
B. | int a = 20 is declaration, extern int a is the definition |
C. | int a = 20 is definition, a is not defined |
D. | a is declared, a is not defined |
11. When we mention the prototype of a function?
A. | Defining | B. | Declaring |
C. | Prototyping | D. | Calling |
With Explanation Answers
0 comments:
Post a Comment