高階ict-u07-d04
In an algorithm with IF mark >= 50 THEN ... ELSE ... ENDIF, the statements:
A. Run as exactly one branch, depending on whether the condition holds✓ 答案
B. Always run both branches
C. Never run either branch
D. Run the ELSE branch first and then the THEN branch
解說
Selection runs one branch only: the THEN branch when the condition is true, otherwise the ELSE branch. Running both would be iteration and would repeat the work.