C Programming Multiple Choice Questions (MCQ) | IT Developer <?php echo $page_title; ?>
IT Developer

C Programming Multiple Choice Questions (MCQ)

C Programming - Conditional Statements & Loops Multiple Choice Questions (MCQ) - Set 22



Share with a Friend

Multiple Choice Questions


C Programming - Conditional Statements & Loops Multiple Choice Questions (MCQ) - Set 22

106. What is the output of C Program ?
int main()
{
    int k;
    
    for(;;)
    {
        printf("TESTING\n");
        break;
    }

    return 0;
}
A). No Output
B). TESTING
C). Compiler error
D). None of the above
View Answer
Correct: B




107. How many times will the following loop be executed?
  ch = 'b';
  while (ch > = 'a' && ch <= 'z')
A). 20
B). 25
C). 26
D). 0
View Answer
Correct: B




108. What is the output of C Program ?
int main()
{
    int k;
    
    for(printf("FLOWER "); printf("YELLOW "); printf("FRUITS "))
    {
        break;
    }

    return 0;
}
A). Compiler error
B). FLOWER FRUITS
C). FLOWER YELLOW
D). FLOWER YELLOW FRUITS
View Answer
Correct: C




109. One the execution of above program, what will be the variable a?
A). 2
B). 5
C). 7
D). 12
View Answer
Correct: C




110. What is the way to suddenly come out of or Quit any Loop in C Language ?
A). continue; statement
B). break; statement
C). leave; statement
D). quit; statement
View Answer
Correct: B