Multiple choice
(Not rated)
(Not rated)
1. What will be the value stored in the variable total when the following code completes executing:
count = num
total = num = 0
For count = 1 to 10
total = total + count
endfor
A) 10
B) 55
C) 45
D) 0
2. An algorithm is the sequence of steps necessary to solve a problem.
A) True
B) False
3. Create a program using a loop that calculates the square of each number (the number raised to the second power) starting with 1 and outputs the square . The program should end when the square is equal to 100. You should use a WHILE loop.
4. Each variable within an array has the same name and the same data type.
A) True
B) False
12 years ago
Multiple choice
NOT RATED
Purchase the answer to view it
- 16.doc