中等ICT-ALGO-013
What is the output of this pseudocode? a ← 3 b ← 4 a ← a + b OUTPUT a OUTPUT b
A. 3, then 4
B. 7, then 7
C. 7, then 4✓ 答案
D. 4, then 3
解說
a becomes 3 + 4 = 7. b is never assigned again, so it stays 4. The two OUTPUT lines print 7 and then 4.