MCQs on Loop Control Statement in C

Hello students welcome to CSE Study247 , Today I am provide MCQs on Loop Control Statement in C.

This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)

❤️ TOP 500+ C Programming Question and Answer

C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C-Programming-MCQ-Multiple-Choice-Questions

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.

 

Q.1 The minimum number of times while loop is executed is ?





ANSWER= (D) Cannot be predicted

 

Q.2 The minimum number of times do while loop is executed is





ANSWER= (B) 1

 

Q.3 Which of the following looping statements end with a semi-colon ?





ANSWER= (B) do while

 

Q.4 Infinite loop is





ANSWER= (C) Useless

 

Q.5 Which is the incorrect statement ?





ANSWER= (D) One type of loop cannot be nested in other type of loop

 

Q.6 A Typical repetition control structure comprises which of the following parts ?





ANSWER= (D) All of these

 

Q.7 Loop is used to ?





ANSWER= (D) To execute compound or simple statement repeatedly till the specified condition is True

 

Q.8 Loops in C Language are implemented using?




ANSWER= (D) All of these

 

Q.9 What are statements which result in infinite loop ?





ANSWER= (D) All of these

 

Q.10 Find out the output for the following program

  void main()
  {
  int x=10;
  do
  {
  x++;
  }
  while (x++>12);
  printf(“%d”,x);
  }






ANSWER= (B) 12

 

Q.11 A loop within a loop is called ?





ANSWER= (C) nested loop

 

Q.12 Find out the output for the following program

  void main()
  {
  int i;
  for (i=0;i<=0;i++);
  printf(“%d”,i);
  }






ANSWER= (A) 0

 

Q.13 Find out the output for the following program

  void main()
  {
  int i;
  for (i=1;i<=4;i++);
  printf(“%d”,i);
  }






ANSWER= (B) 1234

 

Q.14 Find out the output for the following program

  void main()
  {
  int i=1;
  for (i = 1; i <2 ; i++)
  printf(“CSE Study247”);
  }






ANSWER= (B) CSE Study247 printed once

 

Q.15 Find out the output for the following program

  void main()
  {
  int i=0;
  for ( i <4 ; i++)
  printf(“CSE Study247”);
  }






ANSWER= (A) Compile time error

 

Q.16 A for loop with the no test condition is known as ?





ANSWER= (A) Infinite loop

 

Q.17 The sentinel controlled loop is also known as ?





ANSWER= (B) Indefinite repetition loop

 

Q.18 In counter- controlled loop, variable known as — is used to count the loop operation





ANSWER= (B) Counter

 

Q.19 In an exit – controlled loop,if the body is executed n times, the test condition is evaluated —- times





ANSWER= (B) n-1

 

Q.143 Find out the output for the following program

  void main()
  {
  double i = 0;
  for (i = 0.0; i < 5.0; i++);
  printf(“%lf”, i);
  }






ANSWER= (C) 5.000000

1. Official Telegram Click Here
2. Telegram For CSE MCQs Click Here
3. You TubeClick Here