100 C Language Questions and Answers for Diploma Students
1. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
2. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
3. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
4. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
5. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
6. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
7. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
8. What is recursion?
Answer: Recursion is the process where a function calls itself.
9. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
10. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
11. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
12. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
13. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
14. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
15. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
16. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
17. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
18. What is recursion?
Answer: Recursion is the process where a function calls itself.
19. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
20. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
21. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
22. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
23. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
24. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
25. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
26. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
27. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
28. What is recursion?
Answer: Recursion is the process where a function calls itself.
29. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
30. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
31. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
32. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
33. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
34. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
35. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
36. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
37. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
38. What is recursion?
Answer: Recursion is the process where a function calls itself.
39. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
40. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
41. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
42. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
43. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
44. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
45. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
46. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
47. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
48. What is recursion?
Answer: Recursion is the process where a function calls itself.
49. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
50. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
51. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
52. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
53. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
54. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
55. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
56. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
57. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
58. What is recursion?
Answer: Recursion is the process where a function calls itself.
59. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
60. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
61. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
62. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
63. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
64. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
65. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
66. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
67. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
68. What is recursion?
Answer: Recursion is the process where a function calls itself.
69. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
70. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
71. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
72. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
73. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
74. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
75. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
76. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
77. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
78. What is recursion?
Answer: Recursion is the process where a function calls itself.
79. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
80. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
81. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
82. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
83. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
84. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
85. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
86. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
87. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
88. What is recursion?
Answer: Recursion is the process where a function calls itself.
89. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
90. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.
91. What is C language?
Answer: C is a general-purpose, procedural programming language developed in 1972 by Dennis
Ritchie at Bell Labs. It is known for its efficiency and control.
92. What is the difference between int and float?
Answer: int is used to store integers (e.g., 5, -1), while float is used to store decimal numbers (e.g.,
5.5, -1.3).
93. What are the types of loops in C?
Answer: For loop, while loop, and do-while loop.
94. What is a pointer in C?
Answer: A pointer is a variable that stores the address of another variable.
95. What is the use of sizeof() operator in C?
Answer: It returns the size of a data type or a variable in bytes.
96. What is a variable?
Answer: A variable is a name given to a memory location that stores data.
97. What is the syntax of a for loop?
Answer: for(initialization; condition; increment/decrement) { // statements }
98. What is recursion?
Answer: Recursion is the process where a function calls itself.
99. What is the difference between = and == in C?
Answer: = is the assignment operator; == is the comparison operator.
100. What is the purpose of the break statement?
Answer: The break statement is used to terminate loops or switch cases.