Programming in C
Set 1 — 10 Questions
1. Which header file is needed for printf() and scanf()?
2. Which data type is used to store a single character?
3. What does the % operator return?
4. Which symbol is used to read a variable's address in scanf()?
5. What does an if-else statement do?
6. In a switch statement, what happens if 'break' is missing?
7. Which loop checks its condition AFTER running the body at least once?
8. What causes an infinite loop?
9. What is the result of 7 / 2 in C, if both operands are int?
10. Which keyword exits a loop immediately?