浙江大学c程试卷
浙江大学2004-2005学年冬季学期
《C Programming》课程期末考试答案
开课学院:计算机学院, 考试形式:闭卷 考试时间:2005年1月22日, 所需时间:120 分
Section 1: Single Choice (2 mark for each item, total 20 marks)
1 C 6 B
2 D 7 C
3 8
A D
4 9
A C
5 B 10 A
Section 2: Fill in the blanks (2 mark for each item, total 30 marks)
1 3 5 7 9 11 13 15
1 0 3*i-2
typedef char *PA[100]
45,3 1,2 5 18
2 4 6 8 10 12 14
1 1 6 5 2 6,20 4
《C Programming》ANSWER, Jan 22, 2005 1 / 2
浙江大学c程试卷
Section 3: Read each of the following programs and answer questions (5 marks for each item, total marks: 30)
1 2 3 4 5 6
i=6,k=4 AzyD 3 3 6 5# 3 2 2 5 a=7#a=1#a=498## This Is A Test bbbcccddd
Section 4: According to the specification, complete each program (2 mark for each blank, total: 20 marks)
(1) (3) (5) (7) (9)
e=1.0 item 0:2
fclose(fp1),fclose(fp2)
head=p1->link
(2) (4) (6) (8) (10)
item>=1e-6 c=fgetc(fp1) fp1,fp2
num!=p1->info&&p1->link!=NULL
p2->link=p1->link
《C Programming》ANSWER, Jan 22, 2005 2 / 2