Instructions: For each question, choose the single best answer. When the practice is graded, the correct answers will appear in the box after each question.
1. Consider this for line: for(int k = 1; k <= 6; k = k+1)Which part determines when the loop will stop
2. Consider this for loop: for(int k = 1; k <= 20; k = k+3)What will be the values of "k"?
3. Which is another way to write k +=4
4. Which is another way to write k--
5. Consider this for loop for(int k = 1; k <=7; k++)What will be the values of "k"
6. Consider this for loop: for(int k = 10; k <=1 ; k-= 2)What will be the values of "k"?
7. Consider this for loop: for(int j = 5; j >=1 ; j++)What will the values of "j" ?
8. Consider this for loop: for(int k =0; k<=100 ; k += 5) g.fillOval(k, 10, 5, 5); What will print?
9. Consider this for loop: for(int k =0; k<=100 ; k += 5) g.fillOval(10, k, 5, 5); what will print?
10. Consider this for loop: for(int k =0; k<=100 ; k += 5) g.fillOval(k, k, 5, 5); Which describes what will print?
The number you got right: Percent Correct: Letter Grade: