NAME

Question types


Start with


Question limit

of 13 available terms

Print test

13 True/False questions

  1. A ___ statement can always be translated into an equivalent ____ statement.do {program statement} while (expression);

          

  2. In order to bypass a group of statements in a loop but continue with the loop thereafter use...while (expression) {program statements};

          

  3. To omit a field from a for loop simply...Use a semicolon with no expression

          

  4. Execution of the ____ statement causes the program to immediately leave the loop it is currently executingdo {program statement} while (expression);

          

  5. What is the syntax of a while loop?do {program statement} while (expression);

          

  6. What is the syntax of the do-while statement?do {program statement} while (expression);

          

  7. The relational operators have _____ precedence than all arithmetic operatorslower

          

  8. How do you left justify in field width specification?scanf("%i", &variableName);

          

  9. The general format of the for statement isfor (n = 0; n<=200, ++n) {program statement};

          

  10. True or False. You can have multiple expression for any of the fields in a for loop.True. It is called a "local" variable and is inexcessible outside the loop.

          

  11. How to use NSLog to right justify within a number of spaces?scanf("%i", &variableName);

          

  12. How do you read user input from terminal?scanf("%i", &variableName);

          

  13. True or False. A variable defined in the for loop field is known only inside the loop.True.