Download Repetition Statements Worksheet Name: List the three types of Loop

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Repetition Statements Worksheet
Name:_______________________________
1. List the three types of Loop statements:
2. When is the condition of the while loop evaluated?
3. What kind of a process is used to end the loop in the Average.java program?
4. What does the user type in the Average.java program to end the while loop?
5. What variable is used in the loop to keep track of how many integers are entered?
6. How can a loop be used to create a robust program?
7. What is the condition of the loop in the WinPercentage.java?
8. What kind of an error is an infinite loop?
9. How is an infinite loop created?
10. What is a nested loop?
11. How many palindromes can you test with the PalindromeTester.java?
12. When is the condition of a do loop evaluated?
13. What will the result be if you input the number 52309 in the ReverseNumber.java program?
14. What is the condition of the do loop in the ReverseNumber.java program?
15. How does a for loop work?
16. How would you change the following while loop into a for loop structure?
int count = 0;
while(count < 25)
{
count = count + 5;
System.out.println(count);
}
17. What does the Multiples.java program do?
18. What would the output of the Stars.java look like?
19. How would you change the Stars.java program to print 15 rows of stars?
20. What would happen if you left out the condition of a for loop?