Midterm Exam (1)
C++ Programming
NCNU CSIE
Date: March 4th, 2009
Time: 14:10-16:00
Open book; turn off computer & mobile phone
-
AD
答案完全正確者,始予計分。
-
10 = 1*110+(-2)*50
= (-2)*160+3*110
= 3*430+(-8)*160
= (-8)*590+11*430
= 11*1610+(-30)*590
錯一行,扣兩分;未表示 Tab 輸出效果者,扣兩分;扣至本題零分為止。
-
7 5 4 3 2 1
數字中間無明顯「空格」者,扣三分;其他情況者,不予計分。
-
0
答案完全正確者,始予計分。
-
92
答案完全正確者,始予計分。
-
5 2 0
未表示 Tab 輸出效果者,扣兩分;答案完全正確者,始予計分。
-
2
4
20
錯一行,扣四分;答案完全錯誤者,不予計分。
-
4
1
錯一行,扣五分;答案完全錯誤者,不予計分。
-
Factorial 2 is 2
Factorial 3 is 6
Factorial 4 is 24
Factorial 5 is 120
Factorial 6 is 208
Factorial 7 is 176
Factorial 8 is 128
Factorial 9 is 128
Factorial 10 is 0
Factorial 11 is 0
Factorial 12 is 0
錯一行,扣兩分;扣至本題零分為止。
-
322
答案完全正確者,始予計分。