C Programming Loop Control Multiple choice question

Exercise : - Multiple Choice Question On C Programming, MCQ C Programming Loop control

This section contains a lot of c programming question and answer with explanation on the topic loop control. These question and answer are very much helpful for interview(campus interviews, walkin interviews, company interviews), competitive examination ,entrance test and placements. Each question having answer and explanation that would help you to understand easily. These question are designed from basic to advance level. So anyone can learn from here (beginner, fresher, engineering graduate, an experienced IT professional).

All the question of c programming are listed below on loop control along with detailed explanation / solution and answer.

1) An expression contains relational operators, assignment operators, and arithmetic operators. In the absence of parentheses, they will be evaluated in which of the following order:
A. assignment, relational, arithmetic
B. arithmetic, relational, assignment
C. relational, arithmetic, assignment
D. assignment, arithmetic, relational

Answer:

arithmetic, relational, assignment

Option:

( B )


Explanation :

No explanations available for this question.


2) The break statement is used to exit from:
A. an if statement
B. a for loop
C. a program
D. the main( ) function

Answer:

the main( ) function

Option:

( D )


Explanation :

No explanations available for this question.


3) A do-while loop is useful when we want that the statements within the loop must be executed:
A. Only once
B. At least once
C. More than once
D. None of the above

Answer:

At least once

Option:

( B )


Explanation :

No explanations available for this question.


4) In what sequence the initialization, testing and execution of body is done in a do-while loop
A. Initialization, execution of body, testing
B. Execution of body, initialization, testing
C. Initialization, testing, execution of body
D. None of the above

Answer:

Initialization, execution of body, testing

Option:

( A )


Explanation :

No explanations available for this question.


5) Which of the following statement is used to take the control to the beginning of the loop?
A. exit
B. break
C. continue
D. None of the above

Answer:

continue

Option:

( C )


Explanation :

No explanations available for this question.