中等ICT-ALGO-007
A program runs and prints the wrong total because the loop adds one extra time. This is a:
A. Logic error.✓ 答案
B. Syntax error.
C. Fibre-optic fault.
D. Primary-key error.
解說
The program runs, so the language rules were followed, but the result is wrong. That is a logic error. A syntax error would stop it from running.