中等ICT-EXAM-007
State the output of this pseudocode: mark ← 50; IF mark > 50 THEN OUTPUT "Pass" ELSE OUTPUT "Fail" ENDIF.
A. Fail✓ 答案
B. Pass
C. 50
D. The program cannot run.
解說
50 is not greater than 50, so the ELSE branch runs and the output is Fail. Everyday ideas about a pass mark do not override the symbol in the algorithm.