IT 114: Introduction to Java
Answers to Class 8 Ungraded Quiz

  1. Name the two parts of a loop.
    loop header and loop body
  2. What part of a loop controls how many times it runs?
    the loop header
  3. How many statements appear on the first line of a loop
    3
  4. What character must appear between each of the statements mentioned above?
    ?
  5. What characters enclose the statements mentioned above?
    ( and )
  6. What do you call the variable that controls the loop?
    the loop variable
  7. What data type must the variable that controls the loop be?
    int
  8. What does the first statement in the first line do?
    declares and initializes the loop variable
  9. What does the middle statement in the first line do?
    determines when the loop stops
  10. What does the last statement on the first line do?
    updates the loop variable