C Programming Quiz
C is the foundation of many other languages and of operating systems. This quiz checks syntax, data types, operators, control statements, functions, arrays, pointers and memory.
What this quiz covers
- Data types and operators
- Control statements and loops
- Functions and arrays
- Pointers and memory
Study tip: Trace each code question by hand, writing down variable values line by line, before you pick an answer.
Questions, answers and explanations
1. Who is the father of C language?
- Steve Jobs
- James Gosling
- Dennis Ritchie
- Rasmus Lerdorf
Answer: Dennis Ritchie
Dennis Ritchie developed the C programming language at Bell Labs.
2. Which of the following is not a valid C variable name?
- int number;
- float rate;
- int variable_count;
- int $main;
Answer: int $main;
The '