Java Control Flow - Quiz

  • A The program has a compile error because the adjustment is missing in the for loop.
  • BThe program has a compile error because the control variable in the for loop cannot be of the double type.
  • CThe program runs in an infinite loop because d<10 would always be true.
  • D The program compiles and runs fine.
  • A for(; ;)
  • Bfor(i=0 ; i<1; i--)
  • Cfor(i=0; ; i++)
  • DAll of the above