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

Explore more Topics under C Programming

Q191.
Consider following program fragment:

What will be printed if
if (a > b)
 printf("a> b") ;
 else
 printf ("else part") ;
 print f("a< = b") a <= b 
Discuss
Answer: (d).All of these
Discuss
Answer: (c).use goto when you want to jump out of a nested loop
Discuss
Answer: (d).both (b) & (c)
Q194.
Consider the following program fragment.
If the required output is abcdefghijklmnopqrstuvwxyz, then xxx should be
 char c = ' a ';
  while ( c++ <= ' z ')
  putchar ( xxx );
Discuss
Answer: (c).c-1
Q195.
Choose the statements that are syntactically correct
Discuss
Answer: (d).both (b) & (c)
Q196.
The following program fragment results in
for(i = 3 ; i < 15; i += 3);
 printf(" %d ", i);
Discuss
Answer: (d).printing of 15
Q197.
The following program fragment results in the printing of

for (i = 1; i< 5; ++ i )
 if ( i == 3) continue;
 else printf( " %d " i );
Discuss
Answer: (b).1 2 4
Q198.
The following program fragment results in the printing of
if (a = 0) printf ("a is zero");
 else printf ("a is not zero"); 
Discuss
Answer: (b).a is not zero
Q199.
The following program fragment  results in the printing of
if ( a = 7 )
 printf (" a is seven ");
 else
 printf (" a is not seven ");
Discuss
Answer: (a).a is even
Q200.
The following loop  outputs
    for ( putchar( 'c' ); putchar ( 'a' ); putchar ( ' r' )) 
    putchar ( 't' );
Discuss
Answer: (d).catratratratrat

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!