Home > C Programming > Quizzes > C Programming Practice Test: Introduction to C Language
C Programming Practice Test: Introduction to C Language
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 50% Most missed: “Which is correct representation of C statement?”

C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, and is strongly associated with UNIX, as it was developed to write the UNIX operating system.

It provides a straightforward, consistent, powerful interface for programming systems. That's why the C language is widely used for developing system software, application software, and embedded systems.

C Programming Practice Test: Introduction to C Language
Time left 00:00
25 Questions

1. Which of the following is not an arithmetic operation?
2. function tolower( c) defined in library works for ___________
3. Variable name resolution (number of significant characters for the uniqueness of variable) depends on ___________
4. Which is correct representation of C statement? e = a * b + c / d * f;
5. Which of the following statement is false?
6. Which of the following is not a valid variable name declaration?
7. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
8. Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
9. Why do variable names beginning with the underscore is not encouraged?
10. What is the precedence of arithmetic operators (from highest to lowest)?
11. Which of the following is a User-defined data type?
12. All keywords in C are in ____________
13. Which of the following typecasting is accepted by C?
14. Operation “a = a * b + a” can also be written as ___________
15. What is the scope of an external variable?
16. Which of the following is not a valid variable name declaration?
17. Which keyword is used to prevent any changes in the variable within a C program?
18. What is the scope of a function?
19. Which of the following declaration is not supported by C?
20. While swapping 2 no’ what at precautions to be taken care? b = (b / a); a = a * b; b = a / b;
21. What is short int in C programming?
22. Which of the following type-casting have chances for wrap around?
23. What is the type of the following assignment expression if x is of type float and y is of type int? y = x + y;
24. enum types are processed by _________
25. What will be the value of the following assignment expression? (x = foo())!= 1 considering foo() returns 2