C-Control Instructions Questions and Answers

Practice Mode
Showing 10 of 24 questions
Q21
Which is exit-controlled loop?
  • A for loop
  • B while loop
  • C do-while loop
  • D All loops
Answer: Option C
Explanation: Do-while checks condition after execution, making it exit-controlled.
Q22
What is nesting of loops?
  • A Using multiple loops in program
  • B Placing one loop inside another
  • C Using loops with functions
  • D Breaking loops
Answer: Option B
Explanation: Nesting means placing one loop inside another loop.
Q23
Which statement transfers control to a labeled statement?
  • A break
  • B continue
  • C goto
  • D switch
Answer: Option C
Explanation: Goto statement transfers control to the specified label.
Q24
What is the purpose of conditional operator (?:) in C?
  • A Mathematical calculation
  • B Function definition
  • C Shorthand for if-else
  • D Variable declaration
Answer: Option C
Explanation: Conditional operator provides shorthand for simple if-else statements.
Questions and Answers for Competitive Exams Various Entrance Test