笔试样卷答案 选择题(每小题1分,共10分) (1)D(2)B(3)B(4)B(5)C(6)D(7)C(8)B(9) (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 illil=kli-1llj-1+ki-1lLil: (28) datal. dat (29)"r" (30) fscanf (31)&x (32)x>0 (33 )x<Imax (34) string (35)NULL(36) string(37)*(x+n-1)(38)*(x+n-2-i)(39)fame (40)getchar():='#
笔试样卷答案 一、选择题(每小题 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())!='#