C - Control Flow Constructions

C - Control Flow Constructions
1.  Structural programming approach makes use of 
  • modules
  • control structures
  • user defined data types
  • all the above
Show Answer
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
Show Answer
3.  A null statement can be represented by a 
  • newline
  • blank space
  • semicolon
  • colon
Show Answer
4.  A block is enclosed within a pair of 
  • { }
  • ( )
  • [ ]
  • < >
Show Answer
5.  Identify the unconditional control structure.
  • do-while
  • switch-case
  • goto
  • if
Show Answer
6.  Identify the loop construct. 
  • if-else
  • switch-case
  • goto
  • while
Show Answer
7.  The number of loop constructs in C is 
  • 2
  • 3
  • 4
  • 5
Show Answer
8.  Identify the wrong statement. 
  • if (a < b);
  • if a < b;
  • if (a
  • options b and c
Show Answer
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) {...}
Show Answer
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
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test