1. In the following pseudocode, which value is the accumulator? Set x = 0 For m = 1 To 10 Set x = x +
1.
In the following pseudocode, which value is the accumulator? Set x = 0 For m = 1 To 10 Set x = x + m End For Display x
Question 12 options:
| |
| |
| |
| D) | there is no accumulator | |
2.
How many times would the following loop iterate? For j = 1 To 5 Step 2 Display j End For
Question 13 options:
3.
How many times would the following loop iterate? Set k = 1 While k > 5 Display k End While
Question 14 options:
4.
How many times would the following loop iterate? Set k = 1 Do Display k Set k = k + 1 Until k > 2
Question 16 options:
5.
How many times would the following loop iterate? Set k = 1 While k <= 5 Display k End While
Question 17 options: