Home
MCQS
C/C MCQ Quiz Hub
C Programming MCQ
Choose a topic to test your knowledge and improve your C/C skills
1. Who is the father of C language?
Steve Jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
2. All keywords in C are in ____________
LowerCase letters
UpperCase letters
CamelCase letters
None of the mentioned
3. Which of the following cannot be a variable name in C?
volatile
true
friend
export
4. Which keyword is used to prevent any changes in the variable within a C program?
immutable
mutable
const
volatile
5. What is the result of logical or relational expression in C?
True or False
0 or 1
0 if an expression is false and any positive number if an expression is true
None of the mentioned
6. What is an example of iteration in C?
for
while
do-while
all of the mentioned
7. Functions can return enumeration constants in C?
true
false
depends on the compiler
depends on the standard
8. Functions in C Language are always _________
Internal
External
Both Internal and External
External and Internal are not valid terms for functions
9. Which of following is not accepted in C?
static a = 10; //static as
static int func (int); //parameter as static
static static int a; //a static variable prefixed with static
All of the mentioned
10. Property which allows to produce different executable for different platforms in C is called?
File inclusion
Selective inclusion
Conditional compilation
Recursive macros
Submit