adplus-dvertising

Welcome to the Control Flow Statements in C MCQs Page

Dive deep into the fascinating world of Control Flow Statements in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Control Flow Statements in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Control Flow Statements in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Control Flow Statements in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Control Flow Statements in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Control Flow Statements in C MCQs | Page 31 of 32

Explore more Topics under C Programming

Q301.
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;
}
Discuss
Answer: (b).12 10 12
Q302.
What is the output of C Program?
int main()
{
    int a=0, b=0;
    while(++a < 4)
        printf("%d ", a);

    while(b++ < 4)
        printf("%d ", b);

    return 0;
}
Discuss
Answer: (b).1 2 3 1 2 3 4
Q303.
What is the output of C Program?
int main()
{
    int a=10,b=20;
    
    if(a==9 AND b==20)
    {
        printf("Hurray..");
    }
    
    if(a==10 OR b==21)
    {
        printf("Theatre");
    }

    return 0;
}
Discuss
Answer: (d).Compiler error
Discuss
Answer: (d).All of the above
Discuss
Answer: (b).American Standard Code for Information Interchange
Q306.
What is the output of C Program with Switch Statement?
int main()
{
    
    int a=5;
    
    switch(a)
    {
        case 0: printf("0 ");
        case 3: printf("3 ");
        case 5: printf("5 ");
        default: printf("RABBIT ");
    }
    
    a=10;
    switch(a)
    {
        case 0: printf("0 ");
        case 3: printf("3 ");
        case 5: printf("5 ");
        default: printf("RABBIT "); break;
    }
    
    return 0;
}
Discuss
Answer: (d).3 5 RABBIT RABBIT
Q307.
What is the output of C Program with switch statement?
int main()
{
    int a=3;
    
    switch(a)
    {
        case 2: printf("ZERO "); break;

        case default: printf("RABBIT ");
    }
    
}
Discuss
Answer: (d).Compiler error
Q308.
What is the output of C Program with switch statement or block?
int main()
{
    int a=3;
    
    switch(a)
    {

    }
    
    printf("MySwitch");
}
Discuss
Answer: (a).MySwitch
Q309.
What is the output of C Program with switch statement or block?
int main()
{
    int a;
    
    switch(a)
    {
        printf("APACHE ");
    }
    
    printf("HEROHONDA");
}
Discuss
Answer: (b).HEROHONDA
Q310.
What is the output of C program with switch statement or block?
int main()
{
    int a;
    
    switch(a);
    {
        printf("DEER ");
    }
    
    printf("LION");
}
Discuss
Answer: (b).DEER LION

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!