iGET

C Programming - MCQ Practice Questions

C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.

972 questions | 100% Free

Q.81Easy

Which control flow statement allows jumping to a labeled location in C?

Q.82Easy

In the ternary operator expression (condition ? expr1 : expr2), if condition is true, which expression evaluates?

Q.83Easy

Which statement is true about the goto statement in modern C programming?

Q.84Easy

In a for loop for(int i = 0; i < 5; i++), at what point does the increment happen?

Q.85Easy

In a nested loop structure, which statement is used to skip the current iteration of the innermost loop only?

Q.86Easy

Which looping construct in C allows initialization, condition, and increment to be placed in a single line?

Q.87Easy

In which scenario would a do-while loop be preferred over a while loop?

Q.88Easy

What is the purpose of the ternary operator (? :) in C?

Q.89Easy

Which statement is true about the goto statement in modern C programming practices?

Q.90Easy

What is the primary difference between 'break' and 'continue' statements in C loops?

Q.91Easy

Consider the following code snippet:
int x = 5;
do {
printf("%d ", x);
x--;
} while(x > 0);
What will be the output?

Q.92Easy

What is the primary purpose of using functions in C programming?

Q.93Easy

Which keyword is used to define a function in C?

Q.94Easy

Which of the following is a correct function declaration?

Q.95Easy

What will be the output of the following code?
int func(int x) { return x * 2; }
int main() { printf("%d", func(5)); }

Q.96Easy

How many times can a function be called in a C program?

Q.97Easy

What is the return type of the strlen() function in C?

Q.98Easy

What is the scope of a function parameter in C?

Q.99Easy

Which keyword is used to create a function that can be expanded inline by the compiler without actual function call overhead?

Q.100Easy

Consider: int func(int x) { return ++x; } What is the difference if we use x++ instead of ++x?