iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 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?

C Programming MCQs & Practice Tests – Free | iGET | iGET