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

What is the behavior of goto in C?

Q.62Easy

Which statement is used to skip remaining iterations and move to next iteration?

Q.63Easy

In C, which control flow statement is used to terminate a loop prematurely?

Q.64Easy

What is the primary difference between a while loop and a do-while loop?

Q.65Easy

In a nested loop structure, which statement will skip only the inner loop's current iteration?

Q.66Easy

In the expression (x > 5) ? (y = 10) : (y = 20), what does y equal if x is 3?

Q.67Easy

Which control flow structure allows execution of code only if a certain condition is met?

Q.68Easy

In a switch statement, which keyword provides a default case if no cases match?

Q.69Easy

What is the correct syntax for a for loop that iterates from 0 to 9?

Q.70Easy

Which control structure allows checking multiple conditions in sequence using else-if?

Q.71Easy

Which keyword is used to exit a loop prematurely in C?

Q.72Easy

Analyze the code: What happens when condition in if statement is false? if(0) { statements; } else { statements; }

Q.73Easy

In the ternary operator (? :), what happens if the condition is false?

Q.74Easy

What will be the result? for(int i = 1; i <= 4; i++) { if(i == 3) break; printf("%d ", i); }

Q.75Easy

What is printed by this code? int x = 1, y = 2; if(x > y) printf("A"); else if(x < y) printf("B"); else printf("C");

Q.76Easy

Which statement best describes the difference between break and continue?

Q.77Easy

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

Q.78Easy

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

Q.79Easy

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

Q.80Easy

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