武汉理工大学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_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>
正确答案:——A——
2.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_80" o:spid="_x0000_i1097" type="#_x0000_t75" style='width:3in;height:18.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image075.png" o:title=""/></v:shape><!--><!----><img width="288" height="25" v:shapes="图片_x0020_80" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image075.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个字符
B.包含2个字符
C.包含3个字符
D.是非法表示
正确答案:——C——
3.[单选题] 以下程序的运行结果是( )。 func(int a,int b) {int c; c=(a>b)?(a-b):(a+b); return(c);} main() { int x=7,y=3; printf("%d\n",func(x,y));}
A.3
B.4
C.7
D.10
正确答案:——B——
4.[单选题] 下列程序段中,非死循环的是( )。
A.int i=100; while(1) { i=i%100+1; if(i>=100) break; }
B.int k=0; do{ ++k; }while(k>=0);
C.int s=10; while(++s%2+s%2) s++;
D.for(;;)
正确答案:————
5.[单选题] 若有定义:int a,b; float x,则以下不符合C语言语法的表达式是( )。
A.x%7
B.x/=a-b
C.a=b=2
D.x=(float)a/b
正确答案:————
6.[单选题] 下列C语言合法的数据类型关键字是( )。
A.Double
B.unsigned
C.integer
D.Char
正确答案:————
7.[单选题] 若有定义:int x; char c='A'; 则正确的赋值表达式是( )。(说明:'A'的ASCII码的十进制值为65,'a'的ASCII码的十进制值为97)
A.x=c+32
B.x=c+'ABC'
C.x=c+'CBA'
D.x='ABC'
正确答案:————
8.[单选题] ( )能正确定义一个指向函数的指针。
A.int *p()
B.int (*p)()
C.(int *)p()
D.int (*p())
正确答案:————
9.[单选题] 语句 k=(m=5,n=++m); 运行之后,变量k、m、n的值依次为( )。
A.5,5,6
B.5,6,5
C.6,6,5
D.6,6,6
正确答案:————
10.[单选题] 下面关于C语言变量的叙述中,错误的是( )。
A.可以用define关键字定义变量
B.变量名用大小写字母是有区别的
C.C语言允许不同基本类型的变量之间进行混合运算
D.C语言中要求对变量作强制定义的主要理由是:便于确定类型和分配空间
正确答案:————
11.[单选题] 若已定义 int x=-16,y=-12,z; 语句z=x<=y; 运行后z的值为( )。
A.t
B.1
C.f
D.0
正确答案:————
12.[单选题] 下面程序的运行结果是( )。 #include <stdio.h> main() {FILE *fp; int a=2,b=4,c=6,k,n; fp=fopen("test.dat","w"); fprintf(fp,"%d\n",a); fprintf(fp,"%d%d\n",b,c); fclose(fp); fp=fopen("test.dat","r"); fscanf(fp,"%d%*d%d",&k,&n); printf("%d%d\n",k,n); fclose(fp); }
A.24
B.26
C.42
D.62
正确答案:————
13.[单选题] 设int x=10, a=0, b=25;,条件表达式x<1?a+10︰b的值是( )
A.0
B.1
C.10
D.25
正确答案:————
14.[单选题] 设enum color {red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是( )
A.0
B.1
C.3
D.4
正确答案:————
15.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US"><!--><v:shape id="图片_x0020_57" o:spid="_x0000_i1080" type="#_x0000_t75" style='width:310.8pt;height:17.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image058.png" o:title=""/></v:shape><!--><!----><img width="414" height="23" v:shapes="图片_x0020_57" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image058.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.7
B.8
C.9
D.80
正确答案:————
16.[单选题] 一个C语言源程序是由( )
A.一个主程序和若干子程序组成
B.函数组成
C.若干过程组成
D.若干子程序组成
正确答案:————
17.[单选题] ( )为非法的字符串常量。
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>
正确答案:————
18.[单选题] 若在fopen函数中使用文件的方式是"a+",该方式的含义是( )。
A.以读/写方式打开一个文本文件
B.以输出方式打开一个文本文件
C.以读/写方式建立一个新的文本文件
D.以读/写方式建立一个新的二进制文件
正确答案:————
19.[单选题] 若有定义:union u_type {int x;float y;char z; }a; 则变量a的长度是( )。
A.1
B.4
C.12
D.15
正确答案:————
20.[单选题] 若有定义:float x=3.5,y=3.6; 则表达式( )的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)
正确答案:————
21.[单选题] <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>
正确答案:————
22.[单选题] ( )为正确的用户标识符。
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>
正确答案:————
23.[单选题] 若有以下类型说明,则叙述错误的是( )。 typedef union {char name; int age; }ustu,*umy;
A.umy是指向共用体类型ustu的指针类型名
B.ustu是一个共用体类型名
C.umy是一个共用体类型名
D.age是共用体类型ustu的成员
正确答案:————
24.[单选题] 下面叙述错误的是( )。
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_133" o:spid="_x0000_i1156" type="#_x0000_t75" style='width:252.6pt;height:17.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image136.png" o:title=""/></v:shape><!--><!----><img width="337" height="23" v:shapes="图片_x0020_133" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image136.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_134" o:spid="_x0000_i1157" type="#_x0000_t75" style='width:212.4pt;height:13.8pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image137.png" o:title=""/></v:shape><!--><!----><img width="283" height="18" v:shapes="图片_x0020_134" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image137.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_135" o:spid="_x0000_i1158" type="#_x0000_t75" style='width:303pt;height:16.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image138.png" o:title=""/></v:shape><!--><!----><img width="404" height="22" v:shapes="图片_x0020_135" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image138.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_136" o:spid="_x0000_i1159" type="#_x0000_t75" style='width:156.6pt;height:17.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy01-60.files/image139.png" o:title=""/></v:shape><!--><!----><img width="209" height="23" v:shapes="图片_x0020_136" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image139.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
正确答案:————
25.[单选题] 若按如下定义,函数link的功能是( )。其中head指向链表首结点,整个链表结构如下图: ┌──┬─┐┌──┬─┐ ┌──┬──┐ head →│data│┼→│data│┼→… → │data│NULL│ └──┴─┘└──┴─┘ └──┴──┘ struct node {int data; struct node *next;}; void link(struct node* head) {struct node *p=head; while(p!=NULL) { if(p->data%2==1)printf("%d ",p->data); p=p->next; } }
A.计算链表head中结点的个数
B.遍历链表head,输出表中值为奇数的元素
C.删除链表head中的所有结点
D.插入一个新元素到链表head中
正确答案:————
26.[单选题] 构成C源程序的基本单位是( )
A.语句
B.变量
C.运算符
D.函数
正确答案:————
27.[单选题] 已有如下定义和输入语句,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
正确答案:————
28.[单选题] 以下程序运行后,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
正确答案:————
29.[单选题] <p class="MsoNormal"><span lang="EN-US"><!--><v:shape id="图片_x0020_6" o:spid="_x0000_i1028" type="#_x0000_t75" style='width:207pt;height:49.2pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image006.png" o:title=""/></v:shape><!--><!----><img width="276" height="66" v:shapes="图片_x0020_6" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image006.png"><!----></span></p>
A.4
B.5
C.8
D.9
正确答案:————
30.[单选题] <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
正确答案:————
31.[单选题] 若已定义: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
正确答案:————
32.[单选题] 若有定义:int a;则表达式&a-a的值为( )。
A.7
B.8
C.9
D.10
正确答案:————
33.[单选题] 设有说明 int x=0,y=2; 则执行 if(x=0)y=1+x; else y=x-1; 后,变量y的值是( )
A.-1
B.0
C.1
D.2
正确答案:————
34.[单选题] <p class="MsoNormal"><span lang="EN-US"><!--><v:shape id="图片_x0020_15" o:spid="_x0000_i1038" type="#_x0000_t75" style='width:187.8pt;height:101.4pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image015.png" o:title=""/></v:shape><!--><!----><img width="250" height="135" v:shapes="图片_x0020_15" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image015.png"><!----></span></p>
A.108
B.18
C.12
D.2
正确答案:————
35.[单选题] 以下程序运行后,文件test.txt的内容是( )。 #include <stdio.h> main() {FILE *fp; char str[]={"first","second"}; fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str); fclose(fp); fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str); fclose(fp); }
A.first
B.second
C.first second
D.second first
正确答案:————
36.[单选题] 字符数组s不能作为字符串使用的是( )
A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US"><!--><v:shape id="图片_x0020_75" o:spid="_x0000_i1092" type="#_x0000_t75" style='width:101.4pt;height:19.8pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image070.png" o:title=""/></v:shape><!--><!----><img width="135" height="26" v:shapes="图片_x0020_75" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image070.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_76" o:spid="_x0000_i1093" type="#_x0000_t75" style='width:111.6pt;height:15.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image071.png" o:title=""/></v:shape><!--><!----><img width="149" height="21" v:shapes="图片_x0020_76" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image071.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_77" o:spid="_x0000_i1094" type="#_x0000_t75" style='width:219.6pt;height:18.6pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image072.png" o:title=""/></v:shape><!--><!----><img width="293" height="25" v:shapes="图片_x0020_77" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image072.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_78" o:spid="_x0000_i1095" type="#_x0000_t75" style='width:218.4pt;height:18pt; mso-position-horizontal-relative:page;mso-position-vertical-relative:page'> <v:imagedata src="cyy02-60.files/image073.png" o:title=""/></v:shape><!--><!----><img width="291" height="24" v:shapes="图片_x0020_78" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image073.png"><!----></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white"> <o:p></o:p></span></span></p>
正确答案:————
37.[单选题] 文本文件quiz.txt的内容为"Programming" (不包含引号),以下程序段的运行结果是( )。 FILE *fp; char *str; if((fp=fopen("quiz.txt","r"))!=NULL) str=fgets(str,7,fp); printf("%s",str);
A.Progr
B.Progra
C.Program
D.Programming
正确答案:————
38.[单选题] <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.指向整型函数的指针变量
正确答案:————
39.[单选题] 若有定义:int a=3; 语句a+=a-=a*a; 运行后,a的值为( )。
A.0
B.-3
C.-12
D.-6
正确答案:————
40.[单选题] 设已定义char s[ ]="\"Name\\Address\023\n";,则字符串所占的字节数是( )。
A.19
B.16
C.18
D.14
正确答案:————
页:
[1]