True/False 3

  1. You can always convert a for loop to a while loop.
  2. You can always convert a while loop to a for loop.
  3. The while loop and the do loop are equivalent in their expressive power; in other words, you can rewrite a while loop using a do loop, and vice versa.
  4. You can always write a program without using break or continue in a loop.
  5. The elements inside the for loop control are separated using semicolons instead of commas.
  6. You can always convert a switch statement to an equivalent if statement.
  7. You can always convert an if statement to a switch statement.
  8. The break keyword must be used in a switch statement; otherwise, a syntax error occurs.
  9. The default case must be specified in a switch statement.
  10. A variable declared in the for loop control can be used after the loop exits.
  11. Visited times since 28 Jan 1999.