笔试样卷答案
一、选择题(每小题1分,共10分)
(1)D (2)B (3)B (4)B (5)C (6)D (7)C (8)B (9)D
(10)B
二、读程序,并选出正确的答案(每空3 分,共45分)
(11)A (12)D (13)A (14)A (15)B (16)A (17)D (18)D
(19)B (20)B (21)E (22)B (23)D (24)A (25)D
三、程序填空(每小题3分,共45分)
(26)i==j (27)k[i][j]=k[i-1][j-1]+k[i-1][j]; (28)data1.dat (29)"r"
(30)fscanf (31)&x (32)x>0 (33)x<lmax (34)string
(35)NULL (36)string (37)*(x+n-1) (38)*(x+n-2-i) (39)fname
(40)getchar())!='# '