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 22 of 32

Explore more Topics under C Programming

Q211.
Consider the following program fragment

if (a > b)
if (b > c)
s1 ;
else s2;

s2 will be executed if
Discuss
Answer: (d).a> b and b <= c
Discuss
Answer: (c).default case, if used, can be placed anywhere
Discuss
Answer: (d).Both (a) and (b)
Q214.
Break statement can be simulated by using
Discuss
Answer: (a).goto
Q215.
The following program fragment

if (2 < 1)
 ;
 else
 x =  (2 < 0) ? printf("one") : printf("four");
 printf ("%d",  x);
Discuss
Answer: (d).none of the above
Q216.
Consider the following program fragment.
a<=b will be printed if
if (a>b)
    printf("a>b");
 else
    printf("else part");
    printf("a<=b");
Discuss
Answer: (d).Both (b) and (c)
Q217.
The body of the following for loop

 for( putchar( 'a' ); putchar (0); putchar (' c ') ) putchar ( 'b') ;

will be executed
Discuss
Answer: (a).0 times
Q218.
The following piece of code:
if (a > b)
 if (c > b)
 printf("one");
 else
 if (c == a) printf('two');
 else printf("three");
 else printf("four");
Discuss
Answer: (d).prints four in a <= b
Q219.
The following program fragment outputs an integer that is same as
int x = 4, y = x, i;
 for (i = 1; i < 4; ++i)
 x += x;
Discuss
Answer: (a).8 * y
Q220.
Using goto inside for loop is equivalent to using
Discuss
Answer: (d).none of the above

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!