C - Control Flow Constructions Questions and Answers
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
1. Structural programming approach makes use of
- modules
- control structures
- user defined data types
- all the above
2. A statement is differentiated from an expression
- by terminating it by a semicolon
- by terminating it by a newline character
- by terminating it by a NULL
- by terminating it by a blank space
3. A null statement can be represented by a
- newline
- blank space
- semicolon
- colon
5. Identify the unconditional control structure.
- do-while
- switch-case
- goto
- if
8. Identify the wrong statement.
- if (a < b);
- if a < b;
- if (a<b) { ; }
- options b and c
9. Which is syntactically correct ?
- if (a : = 10) {.....} else if (a< 10) { ...}
- if (a = = 10) {...} else if (a<10) {....}
- if (a eq 10) { ... } else if (a < 10) {...}
- if (a.eq. 10) {...} else if ( a<10) {...}
10. Which is the correct statement ?
- printf ("Maximum = % d\n",(x.y)/? x:y);
- printf("%s \n", (mark > = 60)? "FIRST CLASS ": "NOT FIRST CLASS ") ;
- printf ("%s \n", "PASS") ;
- all the above