NAME

Question types


Start with


Question limit

of 19 available terms

Print test

19 Matching questions

  1. for (general)
  2. initial expression
  3. while (general)
  4. loop condition
  5. do (general)
  6. the increment operator
  7. scanf
  8. width specification
  9. The continue statement
  10. For loop summary
  11. Relational operators
  12. The break statement
  13. Use commas to seperate variables in your for loop statement
  14. for (example)
  15. for loop vs. while loop comparison
  16. while loop example
  17. Three kinds of loops in Objective-C
  18. the decrement operator
  19. block of code
  1. a Enables the programmer to type values into the program
  2. b --

    example --n or n--
  3. c initial expression
    while (loop condition)
    {
    program statement
    loop expression
    }
  4. d while (expression)
    program statement

    Loops until the expression is false
  5. e Leaves a loop as soon as a condition occurs

    break;
  6. f ==
    !=
    <
    <=
    >
    >=
  7. g int count = 1;

    while ( count <= 5 )
    {
    NSLog(@"%i", count);
    ++count;
    }
  8. h sets the initial values before the loop begins
  9. i do
    program statement
    while (expression)

    Tests the loop at the end rather than at the beginning so it runs at least once
  10. j Any statement that appears after the continue statement is skipped.
  11. k For, while, do
  12. l 1. 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
  13. m for ( i = 0, j= 10........
  14. n for (initial expression; loop condition; loop expression)
    {
    program statement
    program statement
    program statement
    }
  15. o for (initial expression; loop condition; loop expression)
    program statement
  16. p ++

    example: ++n or n++
  17. q int n, triangularNumber;

    triangularNumber = 0;

    for ( n = 1; n <=200; n = n + 1)
    triangularNumber += n;

    The 200th triangular number
  18. r specifies the condition or conditions necessary for the loop to continue
  19. s %i = 1 column
    %2i = 2 columns
    %3i = 3 columns