NAME

Question types


Start with


Question limit

of 19 available terms

Print test

19 True/False questions

  1. initial expressionsets the initial values before the loop begins

          

  2. do (general)do
    program statement
    while (expression)

    Tests the loop at the end rather than at the beginning so it runs at least once

          

  3. The break statementAny statement that appears after the continue statement is skipped.

          

  4. The continue statementLeaves a loop as soon as a condition occurs

    break;

          

  5. the decrement operator++

    example: ++n or n++

          

  6. Relational operators--

    example --n or n--

          

  7. Three kinds of loops in Objective-CFor, while, do

          

  8. width specification%i = 1 column
    %2i = 2 columns
    %3i = 3 columns

          

  9. scanfdo
    program statement
    while (expression)

    Tests the loop at the end rather than at the beginning so it runs at least once

          

  10. For loop summary1. The intial expression is evaluated first. This expression usually sets a variable that is used inside the loop, generally referred to as the index variable, to some intial value (generally 0 or 1)

    2. The looping condition is evaluated. If the condition is not satisfied (the expression is false), the loop immediately terminates. Execution continues with the program statement that immediately follows the loop.

    3. The program statement that constitutes the body of the loop is executed.

    4. The looping expression is evaluated.

    5. Return to Step 2

          

  11. loop conditionspecifies the condition or conditions necessary for the loop to continue

          

  12. for (general)for (initial expression; loop condition; loop expression)
    program statement

          

  13. Use commas to seperate variables in your for loop statementfor ( i = 0, j= 10........

          

  14. while (general)while (expression)
    program statement

    Loops until the expression is false

          

  15. block of codeEnables the programmer to type values into the program

          

  16. for loop vs. while loop comparisoninitial expression
    while (loop condition)
    {
    program statement
    loop expression
    }

          

  17. the increment operator--

    example --n or n--

          

  18. while loop exampleint count = 1;

    while ( count <= 5 )
    {
    NSLog(@"%i", count);
    ++count;
    }

          

  19. for (example)for (initial expression; loop condition; loop expression)
    program statement