Basic C Programming MCQ Questions and Answers
Practice ModeShowing 10 of 198 questions
Q51
In a for loop, if the condition is missing, then infinite looping can be avoided by a
Answer: Option
Q52
Choose the correct statement.
Answer: Option A
Q53
Which of the following comments about for loop are correct ?
Answer: Option
Q54
Which of the following comments about for loop are correct ?
Answer: Option
Q55
Choose the correct answers.
Answer: Option
Q56
Consider the following program fragment
if (a > b)
if (b > c)
s1;
else s2;
s2 will be executed if
Answer: Option D
Q57
If switch feature is used, then
Answer: Option C
Q58
The switch feature
Answer: Option
Q59
Break statement can be simulated by using
Answer: Option A
Q60
The following program fragment
if (2 < 1)
;
else
x = (2 < 0) ? printf ("one") : printf ("four");
printf ("%d), x);
Answer: Option D