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.21Easy

Which statement best describes the difference between break and continue?

Q.22Easy

What value does the ternary operator return? int result = (5 > 3) ? 10 : 20;

Q.23Easy

Which of the following control flow statements will cause a compilation error in C?

Q.24Easy

What is the primary difference between while and do-while loops?

Q.25Easy

In a switch statement, if a case label is missing the break statement, what occurs?

Q.26Easy

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

Q.27Easy

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

Q.28Easy

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

Q.29Easy

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

Q.30Easy

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

Q.31Easy

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

Q.32Easy

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

Q.33Easy

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

Q.34Easy

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

Q.35Easy

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

Q.36Easy

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

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