中等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.

「演算法與偽代碼」全部 12 題 · 資訊及通訊科技 MCQ 題庫