Answer the following statements true (T) or false (F)
1. The break statement allows you to skip one iteration in a loop.
2. The continue statement is used to skip all or part of a loop iteration and then finishes the rest of the loop's iterations.
3. The following code will accurately find the average of four numbers entered by the user:
```
var sum = 0;
for(var count = 0; count < 4; count++)
sum = sum + parseFloat(prompt("Enter a number:");
var average = sum/count;
```
4. Desk checking is only used to check the results of summing or averaging values.
5. The accumulator is the variable that holds the total of a sum of values in a loop.
1. False
2. True
3. False
4. False
5. True
You might also like to view...
Which of the following is the maximum distance that CAT5 cable can run before experiencing db loss?
A. 100 feet (30.5meters) B. 207 feet (63.1 meters) C. 328 feet (100 meters) D. 358 feet (109.12meters)
A technician is installing a 2U rack mount server. The necessary rack space height to accommodate the server is:
A. 2.5 inches (.064 meter). B. 3.0 inches (.076 meter). C. 3.5 inches (.089 meter). D. 4.0 inches (.10 meter).