Home > C Programming > Quizzes > C Programming Practice Test: Miscellaneous Topics
C Programming Practice Test: Miscellaneous Topics
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “In C language, FILE is of which data type?”
C Programming Practice Test: Miscellaneous Topics
Time left 00:00
25 Questions

1. What is #include ?
2. What will be the data type returned for the following C function?
#include
int func()
{
return (double)(char)5.0;
}
3. Which of the following is true for variable names in C?
4. What is short int in C programming?
5. What is the meaning of the following C statement?
printf(“%10s”, state);
6. Which of the following header files must necessarily be included in your code, if you want to find the minimum value of unsigned short integer?
7. What will be the data type returned for the following C function?
#include
int func()
{
return (double)(char)5.0;
}
8. What is the difference between the following 2 C codes?
#include //Program 1
int main()
{
int d, a = 1, b = 2;
d = a++ + ++b;
printf("%d %d %d", d, a, b);
}

#include //Program 2
int main()
{
int d, a = 1, b = 2;
d = a++ +++b;
printf("%d %d %d", d, a, b);
}
9. Which keyword is used to prevent any changes in the variable within a C program?
10. Name the function whose definition can be substituted at a place where its function call is made _________
11. What is the default state of an integer in c language?
12. The C-preprocessors are specified with _________symbol.
13. The principle of stack is __________
14. The data structure used to implement recursive function calls _____________
15. Which keyword is used to prevent any changes in the variable within a C program?
16. Which of the following typecasting is accepted by C?
17. What will be the output of the following C code snippet?
#include
void main()
{
1 < 2 ? return 1: return 2;
}
18. What will be the final value of x in the following C code?
#include
void main()
{
int x = 5 * 9 / 3 + 9;
}
19. What is short int in C programming?
20. Which of the following is not an operator in C?
21. scanf() is a predefined function in______header file.
22. What is the sizeof(char) in a 32-bit C compiler?
23. What is the binary representation of the integer -14?
24. All keywords in C are in ____________
25. Which of the following is true for variable names in C?