- Home
- C Programming MCQ
- C Programming MCQ
- C Programming MCQ - Set 1
- C Programming MCQ - Set 2
- C Programming MCQ - Set 3
- C Programming MCQ - Set 4
- C Programming MCQ - Set 5
- C Programming MCQ - Set 6
- C Programming MCQ - Set 7
- C Programming MCQ - Set 8
- C Programming MCQ - Set 9
- C Programming MCQ - Set 10
- C Programming MCQ - Set 11
- C Programming MCQ - Set 12
- C Programming MCQ - Set 13
- C Programming MCQ - Set 14
- C Programming MCQ - Set 15
- Conditional Statements & Loops MCQ
- Conditional Statements & Loops MCQ
- Conditional Statements & Loops MCQ - Set 1
- Conditional Statements & Loops MCQ - Set 2
- Conditional Statements & Loops MCQ - Set 3
- Conditional Statements & Loops MCQ - Set 4
- Conditional Statements & Loops MCQ - Set 5
- Conditional Statements & Loops MCQ - Set 6
- Conditional Statements & Loops MCQ - Set 7
- Conditional Statements & Loops MCQ - Set 8
- Conditional Statements & Loops MCQ - Set 9
- Conditional Statements & Loops MCQ - Set 10
- Conditional Statements & Loops MCQ - Set 11
- Conditional Statements & Loops MCQ - Set 12
- Conditional Statements & Loops MCQ - Set 13
- Conditional Statements & Loops MCQ - Set 14
- Conditional Statements & Loops MCQ - Set 15
- Conditional Statements & Loops MCQ - Set 16
- Conditional Statements & Loops MCQ - Set 17
- Conditional Statements & Loops MCQ - Set 18
- Conditional Statements & Loops MCQ - Set 19
- Conditional Statements & Loops MCQ - Set 20
- Conditional Statements & Loops MCQ - Set 21
- Conditional Statements & Loops MCQ - Set 22
- Conditional Statements & Loops MCQ - Set 23
- Conditional Statements & Loops MCQ - Set 24
- Conditional Statements & Loops MCQ - Set 25
- Conditional Statements & Loops MCQ - Set 26
- Conditional Statements & Loops MCQ - Set 27
- Conditional Statements & Loops MCQ - Set 28
C Programming Multiple Choice Questions (MCQ)
C Programming - Conditional Statements & Loops Multiple Choice Questions (MCQ) - Set 24
![]() Share with a Friend |
Multiple Choice Questions
C Programming - Conditional Statements & Loops Multiple Choice Questions (MCQ) - Set 24
116. Choose a correct statement about C break; statement ?A). break; statement can be used inside switch block
B). break; statement can be used with loops like for, while and do while.
C). break; statement causes only the same or inner loop where break; is present to quit suddenly.
D). All the above.
View Answer
Correct: D
117. The following program segment
{
int sum, index;
index = 50;
while (index > = 0)
{
sum =sum/index;
-index;
}
}
A). Will give a run time error B). Will give a compilation error
C). Will give a linking error
D). None of the above
Correct: B
118. Choose a correct statement about C language break; statement.
A). A single break; statement can force execution control to come out of only one loop.
B). A single break; statement can force execution control to come out of a maximum of two nested loops.
C). A single break; statement can force execution control to come out of a maximum of three nested loops.
D). None of the above.
View Answer
Correct: A
119. Choose a correct C Statement regarding for loop.
for(; ;);A). for loop works exactly first time
B). for loop works infinite number of times
C). Compiler error
D). None of the above
Correct: B
120. What is the output of C Program ?
int main()
{
int a=10, b, c;
b=a++;
c=++a;
printf("%d %d %d", a, b, c);
return 0;
}
A). 10 11 12 B). 12 10 12
C). 12 11 12
D). 12 12 12
View Answer
Correct: B
