武汉理工大学20春《C语言程序设计(本)》-作业二
C语言程序设计(本)-作业二1.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_159" o:spid="_x0000_i1182" type="#_x0000_t75" style='width:283.8pt;height:18pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image162.png" o:title=""/></v:shape><!--><!----><img width="378" height="24" v:shapes="图片_x0020_159" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image162.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><o:p></o:p></span></p>
A.5
B.7
C.10
D.0
正确答案:——B——
2.[单选题] 若已定义:int m=7,n=4; float x=3.0,y=8.0,k; 则执行语句k=m/2+n*x/y;后,变量k的值是( )。
A.3
B.4
C.4.5
D.5
正确答案:——C——
3.[单选题] 若有定义:float x=3.5,y=3.6; 则表达式( )的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)
正确答案:——A——
4.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_40" o:spid="_x0000_i1063" type="#_x0000_t75" style='width:415.2pt;height:17.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image040.png" o:title=""/></v:shape><!--><!----><img width="554" height="23" v:shapes="图片_x0020_40" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image040.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><span style="color:white"> <o:p></o:p></span></span></p>
A.1 2
B.2 3
C.3 3
D.3 4
正确答案:————
5.[单选题] 若在fopen函数中使用文件的方式是"a+",该方式的含义是( )。
A.以读/写方式打开一个文本文件
B.以输出方式打开一个文本文件
C.以读/写方式建立一个新的文本文件
D.以读/写方式建立一个新的二进制文件
正确答案:————
6.[单选题] 以下程序的运行结果是( )。 void main() {int i,j, k=0; for(i= 3;i>=1;i--) {for(j=i;j<=3;j ++) k += i * j ; } printf("%d\n", k); }
A. 19
B. 29
C. 6
D. 25
正确答案:————
7.[单选题] 设int x=10, a=0, b=25;,条件表达式x<1?a+10︰b的值是( )
A.0
B.1
C.10
D.25
正确答案:————
8.[单选题] 以下程序段运行后s的值是( )。 int a={1,2,3,4,5,1,2,3,4}; int i,j,s=1; for(i=0;i<3;i++) for(j=i+1;j<3;j++) s+=a;
A.6
B.120
C.7
D.240
正确答案:————
9.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_55" o:spid="_x0000_i1078" type="#_x0000_t75" style='width:253.8pt;height:15pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image057.png" o:title=""/></v:shape><!--><!----><img width="338" height="20" v:shapes="图片_x0020_55" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image057.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><o:p></o:p></span></p>
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_56" o:spid="_x0000_i1079" type="#_x0000_t75" style='width:31.8pt;height:21pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image058.png" o:title=""/></v:shape><!--><!----><img width="42" height="28" v:shapes="图片_x0020_56" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image058.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
B.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_57" o:spid="_x0000_i1080" type="#_x0000_t75" style='width:29.4pt;height:18.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image059.png" o:title=""/></v:shape><!--><!----><img width="39" height="25" v:shapes="图片_x0020_57" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image059.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_58" o:spid="_x0000_i1081" type="#_x0000_t75" style='width:33.6pt;height:18pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image060.png" o:title=""/></v:shape><!--><!----><img width="45" height="24" v:shapes="图片_x0020_58" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image060.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
D.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_59" o:spid="_x0000_i1082" type="#_x0000_t75" style='width:30pt;height:15pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image061.png" o:title=""/></v:shape><!--><!----><img width="40" height="20" v:shapes="图片_x0020_59" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image061.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
10.[单选题] 若已定义: int a=5,*p; 且 p=&a;则以下表示中不正确的是( )。
A.&a==&(*p)
B.*(&p)==a
C.&(*p)==p
D.*(&a)==a
正确答案:————
11.[单选题] 构成C源程序的基本单位是( )
A.语句
B.变量
C.运算符
D.函数
正确答案:————
12.[单选题] 以下程序段运行后,x的值为( )。 int x={5,4,3,2,1};x=x+x-x;
A.6
B.0
C.1
D.5
正确答案:————
13.[单选题] 若有以下定义: struct node { int data; struct node *next; } *p,*q,*t; 指针p、t和q分别指向图中所示结点: p t q ↓ ↓ ↓ ┌──┬──┐┌──┬──┐┌──┬──┐ │data│next┼→│data│next┼→│data│next┼→... └──┴──┘└──┴──┘└──┴──┘ 现要将t和q所指结点的先后位置交换,同时要保持链表的连续,以下错误的程序段是( )
A.t->next=q->next;p->next=q;q->next=t;
B.p->next=q;t->next=q->next;q->next=t;
C.q->next=t;t->next=q->next;p->next=q;
D.t->next=q->next;q->next=t;p->next=q;
正确答案:————
14.[单选题] 设enum color {red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是( )
A.0
B.1
C.3
D.4
正确答案:————
15.[单选题] 逗号表达式 (a=15,a*4),a+15 的值为( )。
A.15
B.30
C.75
D.60
正确答案:————
16.[单选题] 已有如下定义和输入语句,char c1,c2;int x; scanf("%c%d%c",&c1,&x,&c2);若要求x、c1、c2的值分别为9、'K'和'H',正确的数据输入是( )。
A.K9H
B.K9H
C.K9H
D.9KH
正确答案:————
17.[单选题] 以下程序运行后,a的值是( )。 main() { int a,b; for(a=1,b=1;a<=100;a++) { if(b>=20) break; if(b%3==1) { b+=3; continue; } b-=5; } }
A.101
B.100
C.8
D.7
正确答案:————
18.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_101" o:spid="_x0000_i1117" type="#_x0000_t75" style='width:201pt;height:21.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image095.png" o:title=""/></v:shape><!--><!----><img width="268" height="29" v:shapes="图片_x0020_101" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image095.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><span style="color:white"> <o:p></o:p></span></span></p>
A.指向一维数组的指针变量
B.指向二维数组的指针变量
C.指向一个整型变量的指针变量
D.指向整型函数的指针变量
正确答案:————
19.[单选题] 错误的叙述是( )。
A.一个C语言源程序可由一个或多个函数组成
B.若一条语句较长,也可分写在下一行上
C.C程序必须包含一个main()函数
D.构成C语言源程序的基本单元是算术表达式
正确答案:————
20.[单选题] 语句 k=(m=5,n=++m); 运行之后,变量k、m、n的值依次为( )。
A.5,5,6
B.5,6,5
C.6,6,5
D.6,6,6
正确答案:————
21.[单选题] 设有说明 int x=0,y=2; 则执行 if(x=0)y=1+x; else y=x-1; 后,变量y的值是( )
A.-1
B.0
C.1
D.2
正确答案:————
22.[单选题] 下面程序的输出结果是( )。 #include <stdio.h> int num=10; func() {int num=4; return ++num; } void main() { printf("%d\n",func()); }
A.4
B.5
C.10
D.11
正确答案:————
23.[单选题] ( )为非法的字符串常量。
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_119" o:spid="_x0000_i1142" type="#_x0000_t75" style='width:16.2pt;height:19.8pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image122.png" o:title=""/></v:shape><!--><!----><img width="22" height="26" v:shapes="图片_x0020_119" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image122.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
B.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_120" o:spid="_x0000_i1143" type="#_x0000_t75" style='width:18.6pt;height:18pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image123.png" o:title=""/></v:shape><!--><!----><img width="25" height="24" v:shapes="图片_x0020_120" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image123.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_121" o:spid="_x0000_i1144" type="#_x0000_t75" style='width:21.6pt;height:18pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image124.png" o:title=""/></v:shape><!--><!----><img width="29" height="24" v:shapes="图片_x0020_121" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image124.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
D.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_122" o:spid="_x0000_i1145" type="#_x0000_t75" style='width:39pt;height:21.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image125.png" o:title=""/></v:shape><!--><!----><img width="52" height="29" v:shapes="图片_x0020_122" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image125.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
24.[单选题] <p class="MsoNormal"> <span> <img width="533" height="25" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image059.png" /> </span><span><span style="color:white;"> </span></span></p>
A.<p class="MsoNormal" style="display:inline;"> <span> <img width="112" height="24" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image060.png" /> </span><span style="font-size:12.0pt;"><span style="color:white;"> </span></span></p>
B.<p class="MsoNormal" style="display:inline;"> <span> <img width="227" height="22" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image061.png" /> </span><span style="font-size:12.0pt;"><span style="color:white;"> </span></span></p>
C.<p class="MsoNormal" style="display:inline;"> <span> <img width="64" height="24" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image062.png" /> </span><span style="font-size:12.0pt;"><span style="color:white;"> </span></span></p>
D.<p class="MsoNormal" style="display:inline;"> <span> <img width="176" height="25" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image063.png" /> </span><span style="font-size:12.0pt;"><span style="color:white;"> </span></span></p>
正确答案:————
25.[单选题] 在C语言中,合法的字符常量是( )
A.<p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan;vertical-align:bottom" style="display:inline;"><span lang="EN-US"><span style="mso-spacerun:yes"> </span><!--><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/></v:shapetype><v:shape id="图片_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75" style='width:19.8pt;height:19.8pt;mso-position-horizontal-relative:page; mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image001.png" o:title=""/></v:shape><!--><!----><img width="26" height="26" v:shapes="图片_x0020_1" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image001.png"><!----><span style="mso-spacerun:yes"> </span></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
B.<p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan;vertical-align:bottom" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_2" o:spid="_x0000_i1026" type="#_x0000_t75" style='width:19.8pt;height:14.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image002.png" o:title=""/></v:shape><!--><!----><img width="26" height="19" v:shapes="图片_x0020_2" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image002.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
C.<p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan;vertical-align:bottom" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_3" o:spid="_x0000_i1027" type="#_x0000_t75" style='width:35.4pt;height:16.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image003.png" o:title=""/></v:shape><!--><!----><img width="47" height="22" v:shapes="图片_x0020_3" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image003.png"><!----><span style="mso-spacerun:yes"> </span></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
D.<p class="MsoNormal" align="left" style="text-align:left;mso-pagination:widow-orphan;vertical-align:bottom" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_4" o:spid="_x0000_i1028" type="#_x0000_t75" style='width:27.6pt;height:18.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image004.png" o:title=""/></v:shape><!--><!----><img width="37" height="25" v:shapes="图片_x0020_4" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image004.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
26.[单选题] 下列中错误叙述的是( )。
A.C语言中的文件是一个字节流或二进制流
B.可以以只读方式、只写方式或读写方式打开一个文本文件
C.在程序中对文件进行了写操作后,必须先关闭该文件然后再打开,才能读到第1个数据
D.当对文件的写操作完成之后,必须将它关闭,否则可能导致数据丢失
正确答案:————
27.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_140" o:spid="_x0000_i1163" type="#_x0000_t75" style='width:370.8pt;height:19.8pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image143.png" o:title=""/></v:shape><!--><!----><img width="494" height="26" v:shapes="图片_x0020_140" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image143.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><o:p></o:p></span></p>
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_141" o:spid="_x0000_i1164" type="#_x0000_t75" style='width:110.4pt;height:17.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image144.png" o:title=""/></v:shape><!--><!----><img width="147" height="23" v:shapes="图片_x0020_141" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image144.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
B.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_142" o:spid="_x0000_i1165" type="#_x0000_t75" style='width:104.4pt;height:15pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image145.png" o:title=""/></v:shape><!--><!----><img width="139" height="20" v:shapes="图片_x0020_142" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image145.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_143" o:spid="_x0000_i1166" type="#_x0000_t75" style='width:113.4pt;height:20.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image146.png" o:title=""/></v:shape><!--><!----><img width="151" height="27" v:shapes="图片_x0020_143" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image146.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
D.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_144" o:spid="_x0000_i1167" type="#_x0000_t75" style='width:112.8pt;height:16.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image147.png" o:title=""/></v:shape><!--><!----><img width="150" height="22" v:shapes="图片_x0020_144" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image147.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
28.[单选题] <p class="MsoNormal"><span lang="EN-US"><!--><v:shape id="图片_x0020_41" o:spid="_x0000_i1064" type="#_x0000_t75" style='width:210pt;height:158.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image041.png" o:title=""/></v:shape><!--><!----><img width="280" height="211" v:shapes="图片_x0020_41" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image041.png"><!----></span></p>
A.计算文件wj.txt的起始地址
B.计算文件wj.txt的终止地址
C.计算文件wj.txt的长度
D.将文件指针定位到文件末尾
正确答案:————
29.[单选题] 表达式2+sqrt(16.0)/4结果的数据类型是( )。
A.double
B.int
C.char
D.void
正确答案:————
30.[单选题] 一个C语言源程序是由( )
A.一个主程序和若干子程序组成
B.函数组成
C.若干过程组成
D.若干子程序组成
正确答案:————
31.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_113" o:spid="_x0000_i1129" type="#_x0000_t75" style='width:293.4pt;height:15pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image107.png" o:title=""/></v:shape><!--><!----><img width="391" height="20" v:shapes="图片_x0020_113" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image107.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><span style="color:white"> <o:p></o:p></span></span></p>
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_114" o:spid="_x0000_i1130" type="#_x0000_t75" style='width:42.6pt;height:15pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image108.png" o:title=""/></v:shape><!--><!----><img width="57" height="20" v:shapes="图片_x0020_114" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image108.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white"> <o:p></o:p></span></span></p>
B.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_115" o:spid="_x0000_i1131" type="#_x0000_t75" style='width:102pt;height:12.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image109.png" o:title=""/></v:shape><!--><!----><img width="136" height="17" v:shapes="图片_x0020_115" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image109.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white"> <o:p></o:p></span></span></p>
C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_116" o:spid="_x0000_i1132" type="#_x0000_t75" style='width:82.8pt;height:14.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image110.png" o:title=""/></v:shape><!--><!----><img width="110" height="19" v:shapes="图片_x0020_116" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image110.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white"> <o:p></o:p></span></span></p>
D.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_117" o:spid="_x0000_i1133" type="#_x0000_t75" style='width:81pt;height:16.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image111.png" o:title=""/></v:shape><!--><!----><img width="108" height="22" v:shapes="图片_x0020_117" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image111.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white"> <o:p></o:p></span></span></p>
正确答案:————
32.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_81" o:spid="_x0000_i1098" type="#_x0000_t75" style='width:328.8pt;height:21.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image076.png" o:title=""/></v:shape><!--><!----><img width="438" height="29" v:shapes="图片_x0020_81" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image076.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><span style="color:white"> <o:p></o:p></span></span></p>
A.-3
B.3
C.65539
D.数据不确定
正确答案:————
33.[单选题] C语言基本数据类型包括( )。
A.整型、实型、逻辑型
B.整型、实型、字符型
C.整型、字符型、逻辑型
D.整型、实型、字符串型
正确答案:————
34.[单选题] 若有定义 int m=4321,n=123,k=21; 语句printf("%4d+%3d+%2d",m,n,k); 执行后的输出结果是( )。
A.4321432143211231231232121
B.432112321
C.4321+123+21
D.432+123+021
正确答案:————
35.[单选题] 若已定义:int x=7;float y=7.0;以下语句中能输出正确值的是( )。
A.printf("%d %d",x,y);
B.printf("%d %.3f",x,y);
C.printf("%.3f %.3f",x,y);
D.printf("%.3f %d",x,y);
正确答案:————
36.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_23" o:spid="_x0000_i1046" type="#_x0000_t75" style='width:261pt;height:23.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image023.png" o:title=""/></v:shape><!--><!----><img width="348" height="31" v:shapes="图片_x0020_23" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image023.png"><!----></span><span lang="EN-US" style="mso-bidi-font-size:10.5pt"><span style="color:white"> <o:p></o:p></span></span></p>
A.0
B.1
C.9
D.20
正确答案:————
37.[单选题] 若有定义:int a=6,b=7,k=0,t=1;语句 (k=a<b) && (t=a==b); 运行后,k、t的值分别是( )。
A.0 0
B.1 1
C.0 1
D.10
正确答案:————
38.[单选题] ( )为正确的用户标识符。
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_115" o:spid="_x0000_i1138" type="#_x0000_t75" style='width:28.8pt;height:11.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image118.png" o:title=""/></v:shape><!--><!----><img width="38" height="15" v:shapes="图片_x0020_115" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image118.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
B.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_116" o:spid="_x0000_i1139" type="#_x0000_t75" style='width:18pt;height:15.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image119.png" o:title=""/></v:shape><!--><!----><img width="24" height="21" v:shapes="图片_x0020_116" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image119.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_117" o:spid="_x0000_i1140" type="#_x0000_t75" style='width:32.4pt;height:16.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image120.png" o:title=""/></v:shape><!--><!----><img width="43" height="22" v:shapes="图片_x0020_117" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image120.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
D.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_118" o:spid="_x0000_i1141" type="#_x0000_t75" style='width:20.4pt;height:15.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image121.png" o:title=""/></v:shape><!--><!----><img width="27" height="21" v:shapes="图片_x0020_118" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image121.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
39.[单选题] 下面函数调用语句含有实参的个数为( )。 temp((a,b,c),(x,y))
A.2
B.3
C.4
D.5
正确答案:————
40.[单选题] ( )能正确定义一个指向函数的指针。
A.int *p()
B.int (*p)()
C.(int *)p()
D.int (*p())
正确答案:————
页:
[1]