C - Control Flow Constructions Questions and Answers

Take Exam

Control Flow Constructions in C are fundamental to defining how a program executes statements based on conditions, loops, and decisions. This topic focuses on essential C programming questions and answers that help you master control statements like if-else, switch, for, while, and do-while loops. Whether you’re preparing for placement drives at TCS, Wipro, or Infosys, or aiming to crack technical rounds in coding interviews, these control flow MCQs will test your logical understanding and practical knowledge. Practice these C Control Flow Constructions questions with answers to improve your coding efficiency and logic-building skills.

C - Control Flow Constructions

Showing 10 of 62 questions

61. Result of the following program is   main ( )    {      int i = 0;      for ( i = 0 ; i < 20; i++)             {               switch ( i )                     {                       case 0 : i +=5;                        case1 : i +=2;                       case 5 : i +=5;                       default i + = 4 ;                       break;                      }                   printf ("%d,",i); } }

  • 0,5,9,13,17
  • 5,9,13,17
  • 12,17,22
  • 16,21
Show Answer Report

62.  What is the output of the following code ? main ( )    {      int i = 0;     switch (i)     {    case 0 : i++;     case 1 : i+++2    case 2 : ++i;  } printf ("%d", i++); }

  • 1
  • 3
  • 4
  • 5
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test