C Objective Interview Questions – Control Statements

These C Objective Interview Questions post providing basic, intermediate and Hard level examples in C Control Statements. The Practice of these examples makes you good in C programming.


Which of the following statement is used to take the control to the beginning of the loop?

  1. exit
  2. break
  3. continue
  4. None of these.

Answer :

Ans : 3; break statement terminates the loop, exit statement terminates the program

A do-while loop is useful when we want to that the statement within the loop must be executed?

  1. only once
  2. at least once
  3. more than once
  4. none of the above.

Answer :

Ans : 2;break statement terminates the loop, exit statement terminates the program

Which of these selection statements test only for equality?

  1. if
  2. switch
  3. if & switch
  4. None of the mentioned.

Answer :

Ans : 2; break statement terminates the loop, exit statement terminates the program

Which of these jump statements can skip processing remainder of the code in its body for a particular iteration?

  1. break
  2. return
  3. exit
  4. continue.

Answer :

Ans : 4; break statement terminates the loop, exit statement terminates the program

For loop in a c program, if the condition is missing

  1. it is assumed to be present and taken to be false
  2. it is assumed to be present and taken to the true.
  3. it results in a syntax error
  4. Execution will be terminated.

Answer :

Ans :2; And the loop executes infinite times 

In a for loop, if the condition is missing, then infinite looping cannot be avoided by a

  1. continue statement
  2. goto statement
  3. return statement
  4. break statement.

Answer :

Ans : 1; Using break, goto and return statement we can come out of infinite loop

Choose the correct statement

  1. 0 represents a false condition
  2. Non-zero value represents a false condition
  3. 1 represents a false condition
  4. Anything that is not 1 represents a false condition.

Answer :

Ans : 1; Except 0, all the positive and negative values will be considered as true values in C language

The control automatically passes to the first statement after the loop in

  1. continue statement
  2. break statement
  3. switch statement
  4. if statement.

Answer :

Ans: 1; continue statement sends the control to the first statement of loop

The statement which is used to terminate the control from the loop is

  1. break
  2. continue
  3. goto
  4. exit.

Answer :

Ans : 1; break statement terminates the loop

Can we use a switch statement to switch on strings?

  1. Yes
  2. No
  3. Depends on compiler
  4. Depends on the version of the software.

Answer :

Ans : 2; Not allowed, only integers and characters

C Objective Interview Questions – Control Statements – Part-2

Share this