中等ICT-ALGO-005
FOR i FROM 1 TO 4 means i takes the values:
A. 0, 1, 2, 3
B. 1, 2, 3, 4✓ 答案
C. 1 and 4 only
D. 4, 3, 2, 1, 0
解說
The counter starts at 1 and stops after 4, so there are four passes: 1, 2, 3 and 4.
The counter starts at 1 and stops after 4, so there are four passes: 1, 2, 3 and 4.