While Loop

Pre-Test

  1. a) What is the way to suddenly come out of or quit any Loop in C Language?

  2. continue; statement
    break; statement
    leave; statement
    quit; statement

  3. Loops in C Language are implemented using?

  4. while block
    for block
    do while block
    All of the above

  5. What is the output of C Program?

  6. int main()
    {
    while(true)
    {
    printf("RABBIT");
    break;
    }
    return 0;
    }

    RABBIT
    RABBIT is printed unlimited number of times.
    No output
    Compiler error

  7. Which keyword can be used for coming out of recursion?

  8. return
    break
    exit
    both A and B

  9. Choose a right C Statement.

  10. Loops or Repetition block executes a group of statements repeatedly.
    Loop is usually executed as long as a condition is met
    Loops usually take advantage of Loop Counter
    All of the above