1、天津理工学院考试试卷200 -200 年 C 程序设计期末考试试卷 D-A(本试卷共 8 页,命题日期:2002 年 6 月 20 日)得分统计表:题号总分一 二 三 四 五 六 七 八 九 十一、选择填空(每空 2 分)1int a=1,b=2,c=3,d=4,则表达式 amain( ) int i=0,x=0;int a4=0,2,0,3,0,3,4,0,4,5,6,7,6,5,0,0;while (ib)?(z=c):(z=d)的值为【12】 。A) 4 B)2 C)1 D) 3 13下列程序运行后, c 的输出值为【13】 。 main( ) int a=1,3,5,7,9,b=2,4
2、,6,3,7,c,d=1,*p=a,*q=b; p+=3;q+=2; c=(*p-)/(*q)+5; d+=*p; printf(“%dn“, c); printf(“%dn“, d); A) 6 B) 5 C) 7 D) 不确定值14运行下面程序段的输出结果是【14】 。static int a=4,b=5,t; if(amain() int a23=1,2,3,4,5,6;int b32,i,j;printf(“array a:n“);for(i=0;i=2 D) j=1【30】 A) aij=bji B) bij=aij C) bji=aij D) bij=aji【31】 A) i=1
3、C) i=2 D) imain() char s100;int i,n;printf(“输入字符串:n“);gets(s);n=【1】 ;for(i=0;i 【7】)max= aij;col=【8】;printf(“第%d行的最大值是:%dn“,i, max);4. 有一个按升序排列的数组,今输入一个数x,将它插入到数组中,要求插入后数组仍按升序排列。算法是:对输入的数,检查它在数组中哪一个数之后,然后将比这个数大的所有的数顺序后移一个位置,在空出的位置上将该数插入。请将程序填完整。 #include #define N 10 main() float aN+1,x; int i,p; for
4、 (i=0;i adhere to a positive advocate, focusing on morality is of Party members and Party leading cadres can see, enough to get a high standard; around the party discipline, disciplinary ruler requirements, listed as “negative list, focusing on vertical gauge, draw the party organizations and Party
5、members do not touch the“ bottom line “. Here, the main from four square face two party rules of interpretation: the first part introduces two party Revised regulations the necessity and the revision process; the second part is the interpretation of the two fundamental principles of the revision of laws and regulations in the party; the third part introduces two party regulations modified the main changes and needs to grasp several key problems; the fourth part on how to grasp the implementation of the two