Quiz on basic c

C Language Mock Test

📝 C Language Mock Test (30 Marks)

1. Who developed the C programming language?

2. Which year was C developed at Bell Labs?

3. Which function is the entry point of every C program?

4. Which symbol is used for single-line comments in C?

5. Which data type is used to store decimal values?

6. In C, which keyword defines a constant variable?

7. Which format specifier is used for integers?

8. Which of these is NOT a keyword in C?

9. What is the output of printf("Hello");?

10. Which header file is required for printf()?

11. Which operator is used to assign a value in C?

12. Which operator is used for "AND" in C?

13. Which operator increases a value by 1?

14. Which operator checks equality in C?

15. What is sizeof(int) usually on 32-bit systems?

16. Which function reads a character from user input?

17. What does return 0; in main() mean?

18. Which operator is used to access array elements?

19. Which header file supports mathematical functions like sqrt()?

20. Which operator is used for conditional execution in C?

Comments

frequently used resource

C LANGUAGE

Operators and expressions

Looping statements in c