Answer the following statements true (T) or false (F)

1. An infinite loop occurs in a pre-test loop when a test condition can never be met.
2. An infinite loop occurs in a post-test loop when a test condition can never be met.
3. The following statement will generate a loop with four iterations:
```
for(count = 4; count > 0; count--)
```
4. The problem with a do...while loop is that the test condition cannot be a compound condition.
5. The following test condition is not valid because the toLowerCase() method cannot be included as part of a test condition:
```
while(toLowerCase(string)
```


1. False
2. True
3. True
4. False
5. False

Computer Science & Information Technology

You might also like to view...

What are the four parts of a URL, and what punctuation is used to separate the parts?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is not a correct method in the Character class?

a. isLetterOrDigit(char) b. isLetter(char) c. isDigit() d. toLowerCase(char) e. toUpperCase()

Computer Science & Information Technology

Compare the Update automatically and Fixed date options for slide footers. Give an example of when each would be used.

What will be an ideal response?

Computer Science & Information Technology

Almost all network technologies that use fiber-optic cable require ____________________ of fiber.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology