C - Control Flow Constructions Questions and Answers

Practice Mode
Showing 10 of 62 questions
Q1
 Structural programming approach makes use of 
  • A modules
  • B control structures
  • C user defined data types
  • D all the above
Answer: Option D
Q2
 A statement is differentiated from an expression 
  • A by terminating it by a semicolon
  • B by terminating it by a newline character
  • C by terminating it by a NULL
  • D by terminating it by a blank space
Answer: Option A
Q3
 A null statement can be represented by a 
  • A newline
  • B blank space
  • C semicolon
  • D colon
Answer: Option C
Q4
 A block is enclosed within a pair of 
  • A { }
  • B ( )
  • C [ ]
  • D < >
Answer: Option A
Q5
&nbsp;Identify the unconditional control structure.
  • A do-while
  • B switch-case
  • C goto
  • D if
Answer: Option C
Q6
&nbsp;Identify the loop construct.&nbsp;
  • A if-else
  • B switch-case
  • C goto
  • D while
Answer: Option D
Q7
&nbsp;The number of loop constructs in C is&nbsp;
  • A 2
  • B 3
  • C 4
  • D 5
Answer: Option B
Q8
&nbsp;Identify the wrong statement.&nbsp;
  • A if (a < b);
  • B if a < b;
  • C if (a<b) { ; }
  • D options b and c
Answer: Option B
Q9
&nbsp;Which is syntactically correct ?
  • A if (a : = 10) {.....} else if (a< 10) { ...}
  • B if (a = = 10) {...} else if (a<10) {....}
  • C if (a eq 10) { ... } else if (a < 10) {...}
  • D if (a.eq. 10) {...} else if ( a<10) {...}
Answer: Option B
Q10
&nbsp;Which is the correct statement ?
  • A printf ("Maximum = % d\n",(x.y)/? x:y);
  • B printf("%s \n", (mark > = 60)? "FIRST CLASS ": "NOT FIRST CLASS ") ;
  • C printf ("%s \n", "PASS") ;
  • D all the above
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test