Class 6 Exam  >  Class 6 Tests  >  Test: Break and Continue - Class 6 MCQ

Test: Break and Continue - Class 6 MCQ


Test Description

15 Questions MCQ Test - Test: Break and Continue

Test: Break and Continue for Class 6 2024 is part of Class 6 preparation. The Test: Break and Continue questions and answers have been prepared according to the Class 6 exam syllabus.The Test: Break and Continue MCQs are made for Class 6 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Break and Continue below.
Solutions of Test: Break and Continue questions in English are available as part of our course for Class 6 & Test: Break and Continue solutions in Hindi for Class 6 course. Download more important topics, notes, lectures and mock test series for Class 6 Exam by signing up for free. Attempt Test: Break and Continue | 15 questions in 15 minutes | Mock test for Class 6 preparation | Free important questions MCQ to study for Class 6 Exam | Download free PDF with solutions
Test: Break and Continue - Question 1

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        int a = 0, i = 0, b;
        for (i = 0;i < 5; i++)
        {
            a++;
            continue;
        }
    }

Test: Break and Continue - Question 2

The keyword ‘break’ cannot be simply used within _________

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Break and Continue - Question 3

What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int i = 0, j = 0;
        for (i = 0;i < 5; i++)
        {
            for (j = 0;j < 4; j++)
            {
                if (i > 1)
                    break;
            }
            printf("Hi \n");
        }
    }

Test: Break and Continue - Question 4

What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int i = 0;
        for (i = 0;i < 5; i++)
            if (i < 4)
            {
                printf("Hello");
                break;
            }
    }

Test: Break and Continue - Question 5

What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int i = 0;
        if (i == 0)
        {
            printf("Hello");
            break;
        }
    }

Test: Break and Continue - Question 6

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        int i = 0, j = 0;
        for (i; i < 2; i++){
            for (j = 0; j < 3; j++)
            {
                printf("1\n");
                break;
            }
            printf("2\n");
        }
        printf("after loop\n");
    }

Test: Break and Continue - Question 7

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        int i = 0;
        char c = 'a';
        while (i < 2)
        {
            i++;
            switch (c) 
            {
               case 'a':
                   printf("%c ", c);
                   break;
                   break;
            }
        }
        printf("after loop\n");
    }

Test: Break and Continue - Question 8

Which keyword can be used for coming out of recursion?

Test: Break and Continue - Question 9

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        int a = 0, i = 0, b;
        for (i = 0;i < 5; i++)
        {
            a++;
            if (i == 3)
                break;
        }
    }

Test: Break and Continue - Question 10

Which keyword is used to come out of a loop only for that iteration?

Test: Break and Continue - Question 11

What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int i = 0;
        int j = 0;
        for (i = 0;i < 5; i++)
        {
            for (j = 0;j < 4; j++)
            {
                if (i > 1)
                    continue;
                    printf("Hi \n");
            }
        }
    }

Test: Break and Continue - Question 12

What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int i = 0;
        if (i == 0)
        {
            printf("Hello");
            continue;
        }
    }

Test: Break and Continue - Question 13

What will be the output of the following C code?

     #include <stdio.h>
    int main()
    {
        int i = 0;
        do
        {
            i++;
            if (i == 2)
                continue;
                printf("In while loop ");
        } while (i < 2);
        printf("%d\n", i);
    }

Test: Break and Continue - Question 14

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        int i = 0;
        while (i < 2)
        {
            if (i == 1)
                break;
                i++;
                if (i == 1)
                    continue;
                    printf("In while loop\n");
        }
        printf("After loop\n");
    }

Test: Break and Continue - Question 15

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        printf("before continue ");
        continue;
        printf("after continue\n");
    }

Information about Test: Break and Continue Page
In this test you can find the Exam questions for Test: Break and Continue solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Break and Continue, EduRev gives you an ample number of Online tests for practice

Top Courses for Class 6

Download as PDF

Top Courses for Class 6