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 does the C++ language not support?
a. classes b. global functions c. automatic garbage collection d. support for object oriented programming e. traditional programming techniques
Discuss variable length subnet masking.
What will be an ideal response?
________ is a set of analytical tools that appears when you select a range
Fill in the blank(s) with correct word
COGNITIVE ASSESSMENT You have purchased a surge protector and you are happy with it, in part because it has an appropriate Joule rating. What is that rating?
A. 30 B. 60 C. 300 D. 600