C Programming - C Control Structure Questions and Answers

Following quiz sections depends on the various control structure statements like conditional statements,looping statements etc.
1. In a for loop, if the condition is missing,then?
[A] it is assumed to be present and taken to be false
[B] it is assumed to be present and taken to be true
[C] it result in the syntax error
[D] execution will be terminated abruptly
2. In a for loop, if the condition is missing, then infinite looping can not be avoided by a
[A] Continue statement
[B] goto statement
[C] return statement
[D] break statement
3. Choose the correct statement
[A] 0 represent a false condition
[B] Non zero value represent a false condition
[C] 1 represent a false condition
[D] Anything that is not 1, represents a false condition
4. Which of the following comments about for loop are not correct?
[A] Index value is retained outside the loop
[B] Index value can be changed from within the loop
[C] goto can be used to jump,out of loop
[D] Body of the loop can not be empty
5. Which of the following comment about for loop are correct?
[A] Using break is equivalent to using a goto that jumps to the statement immediately following the loop
[B] Continue is used to by pass the remainder of the current pass of the loop
[C] if comma operator is used,then the value returned is the value of the right operand
[D] All of above
6. Break statement can be simulated by using ?
[A] goto
[B] return
[C] exit
[D] any of the above statement
Are these questions helpful for you?

Comments: (Your feedback is valuable to us)