Multiple Choice Questions for Loops in C Language

  • 1 How many times the following loop will execute for(int x=1;x<=5;x++) { printf(“this statement will be executed”); break; printf(“this statement will not be executed”); }
    1. 5
    2. 10
    3. 0
    4. 1

  • 2 for(;;) will execute _____ number of times
    1. 0
    2. 1
    3. infinite
    4. syntax error

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert