For Loops!
Trivia
What's the error??
50

The first statement inside the parenthesis of the for loop. (ie. for(    ;    ;   ))

What is the initial value for the loop variable?

50

What is the literal meaning of the word "Taekwondo"?

The way of the foot and fist.

50

The error(s) in the following code:

While(i<100);

     System.out.println(i);

What is...

int i=0;

while(i<100)_;_{

    System.out.println(i); 

    i++;

100

The second statement inside the parenthesis of the for loop. (ie. for(    ;    ;   ))

What is the loop condition?

100

What dance is Ms. Cook trying to learn?

Just Wanna Rock Dance

100

The error(s) in the following code:

for(int i=0; i<10; i++)

    i+=3;

    System.out.println(i);

What is...

for(int i=0; i<10; i++) 

{   

     i+=3;

     System.out.println(i);

}___

200

The third statement inside the parenthesis of the for loop. (ie. for(    ;    ;     ))

What is the action step? (or What is the increment/decrement to the loop variable?)

200

NBA superstar Shaquille O'Neal began his career with which team?

Orlando Magic

200

The error(s) in the following code:

int x = keyboard.nextInt();

while(5 < x < 20)  

{

   System.out.println(x)

   x += 5;

}

What is...

int x = keyboard.nextInt();

while(5 < x  &&  x < 20)

{

      System.out.println(x)

      x+=5;

}

300

The output of:

for(int i=1;i<=10;i++)

{

      System.out.print(i + " ");

}

What is: "1 2 3 4 5 6 7 8 9 10"?

300

How many stars are in our solar system?

300

The error(s) in the following code:

for(i = 0; i<20; i++);

      System.out.println(i);

      

What is...

for(int i=0; i<20; i++) 

     System.out.println(i);

400

The output for:

int sum = 0;

for(int i = 0; i< 12; i+=2){

    sum += i;

}

System.out.print(sum);

What is: 30?

400

In a basketball game, how many players from each team are on the court at the same time?

5

400

The error(s) in the following code:


for(int i=3; i<0; i++)

     System.out.println(i);

What is...


for(int i=3; i<0; i++)

     System.out.println(i);

500

A for loop to print out the sum of all even numbers between 1 and 20.

What is...

int sum = 0;

for(int i=1; i<=20; i++){

     if(i%2==0)

         sum+=i;

}

System.out.print(sum);

500

In Volleyball, what is it called when the ball is hit (spiked) over and in, hitting the ground, on the other team's side?

Kill

500

The error(s) in the following code:

int i=-1;

while(i<0){

    System.out.println(i);

    i--;

}

What is...

int i=-1;

while(i<0){

    System.out.println(i);

    i++;

}