Midterm Exam (1) C++ Programming NCNU CSIE

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