adplus-dvertising

Welcome to the Control Flow Statements in C MCQs Page

Dive deep into the fascinating world of Control Flow Statements in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Control Flow Statements in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Control Flow Statements in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Control Flow Statements in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Control Flow Statements in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Control Flow Statements in C MCQs | Page 21 of 32

Q201.
The following loop  prints

for( i=1, j=10; i<6; ++i, --j )
 printf ("%d %d", i, j );
Discuss
Answer: (a).1 10 2 9 3 8 4 7 5 6
Q202.
The following Program results in
main() 
 {
 int i = 5;
 if (i == 5) return;
 else printf (" is not five");
 printf("over");
 }
Discuss
Answer: (d).execution termination, without printing anything
Q203.
The following program fragment results in the printing of
main() 
 {
 int i = 5;
 if (i == 5) return;
 else printf (" is not five");
 printf("over");
 }int i = 5;
 do
 {
 putchar(i + 100);
 printf("%d", i--);
 }
 while (i);
Discuss
Answer: (a).i5h4g3f2el
Q204.
The following loop
while(printf("%d", printf("az")))
 printf("by");
Discuss
Answer: (d).none of the above
Q205.
The following statements will result in the printing of
for (i= 3; i < 15; i += 3)
 {
 printf ("%d ", i); 
 ++i;
 }
Discuss
Answer: (c).3711
Discuss
Answer: (b).it is assumed to be present and taken to be true
Q207.
In a for loop, if the condition is missing, then infinite looping can be avoided by a
Discuss
Answer: (d).All of the above
Discuss
Answer: (d).All of the above
Discuss
Answer: (d).All of the above
Discuss
Answer: (c).Both (a) & (b)

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!