找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1085|回复: 0

武汉理工大22春C语言程序设计(本)(新)-作业二答案

[复制链接]
发表于 2022-2-1 08:30:00 | 显示全部楼层 |阅读模式
C语言程序设计(本)(新)-作业二
1.[单选题] 一个C语言源程序是由(    )
    A.一个主程序和若干子程序组成
    B.函数组成
    C.若干过程组成
    D.若干子程序组成
    答:——A——
2.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><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><![endif]-->  <!--[if !vml]--><img width="348" height="31" v:shapes="图片_x0020_23" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image023.png">  <!--[endif]--></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
    答:——A——
3.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_102" o:spid="_x0000_i1118"   type="#_x0000_t75" style='width:4in;height:17.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image096.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="384" height="23" v:shapes="图片_x0020_102" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image096.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_103"   o:spid="_x0000_i1119" type="#_x0000_t75" style='width:31.8pt;height:19.8pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image097.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="42" height="26" v:shapes="图片_x0020_103" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image097.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_104"   o:spid="_x0000_i1120" type="#_x0000_t75" style='width:24pt;height:14.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image098.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="32" height="19" v:shapes="图片_x0020_104" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image098.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_105"   o:spid="_x0000_i1121" type="#_x0000_t75" style='width:33pt;height:12.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image099.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="44" height="17" v:shapes="图片_x0020_105" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image099.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_106"   o:spid="_x0000_i1122" type="#_x0000_t75" style='width:27.6pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image100.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="37" height="21" v:shapes="图片_x0020_106" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image100.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white">   <o:p></o:p></span></span></p>
    答:——B——
4.[单选题] 若有定义:int b=-15; 则(    )为正确的赋值表达式。
    A.b+=b*3
    B.b=*5
    C.*b=6
    D.b+10=-5
    答:————
5.[单选题] 若已定义: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
    答:————
6.[单选题] 若已定义 int a=3,b=2,c=1; 则语句 ++a||++b&amp;&amp;++c; 运行后b的值为(    )。
    A.0
    B.3
    C.1
    D.2
    答:————
7.[单选题] 设有如下语句:    struct stu       {int num;        int age;       };       struct stu s[3]={{101,18},{102,21},{103,19}};      struct stu *p=s;   则下面表达式的值为102的是(    )。
    A.(p++)-&gt;num
    B.(*++p).num
    C.(*p++).num
    D.*(++p)-&gt;num
    答:————
8.[单选题] 下面叙述正确的是(   )
    A.每行最多只能写两条语句
    B.程序中必需含有自定义函数
    C.<p class="MsoNormal" style="display:inline;"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_102"   o:spid="_x0000_i1125" type="#_x0000_t75" style='width:197.4pt;height:14.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image105.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="263" height="19" v:shapes="图片_x0020_102" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image105.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_103"   o:spid="_x0000_i1126" type="#_x0000_t75" style='width:150.6pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image106.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="201" height="21" v:shapes="图片_x0020_103" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image106.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt">  <o:p></o:p></span></p>
    答:————
9.[单选题] 设enum color {red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是(    )
    A.0
    B.1
    C.3
    D.4
    答:————
10.[单选题] 语句 k=(m=5,n=++m); 运行之后,变量k、m、n的值依次为(     )。
    A.5,5,6
    B.5,6,5
    C.6,6,5
    D.6,6,6
    答:————
11.[单选题] (   )是正确的叙述。
    A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_37"   o:spid="_x0000_i1061" type="#_x0000_t75" style='width:111pt;height:18pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image039.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="148" height="24" v:shapes="图片_x0020_37" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image039.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_38"   o:spid="_x0000_i1062" type="#_x0000_t75" style='width:78pt;height:18.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image040.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="104" height="25" v:shapes="图片_x0020_38" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image040.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_39"   o:spid="_x0000_i1063" type="#_x0000_t75" style='width:75.6pt;height:21pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image041.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="101" height="28" v:shapes="图片_x0020_39" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image041.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_40"   o:spid="_x0000_i1064" type="#_x0000_t75" style='width:1in;height:23.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image042.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="96" height="31" v:shapes="图片_x0020_40" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image042.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt">  <o:p></o:p></span></p>
    答:————
12.[单选题] 下面程序的运行结果是(    )。       #include &lt;stdio.h&gt;       union data    { int i;      char c;      double d;    }a[2];       void main()   {printf("%d\n",sizeof(a));    }
    A.16
    B.8
    C.4
    D.2
    答:————
13.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_137" o:spid="_x0000_i1160"   type="#_x0000_t75" style='width:415.2pt;height:19.8pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image140.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="554" height="26" v:shapes="图片_x0020_137" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image140.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_138"   o:spid="_x0000_i1161" type="#_x0000_t75" style='width:13.8pt;height:11.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image141.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="18" height="15" v:shapes="图片_x0020_138" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image141.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_139"   o:spid="_x0000_i1162" type="#_x0000_t75" style='width:21.6pt;height:16.2pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image142.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="29" height="22" v:shapes="图片_x0020_139" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image142.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt">  <o:p></o:p></span></p>
    C.+
    D.-
    答:————
14.[单选题] 若已定义 int x=-16,y=-12,z; 语句z=x&lt;=y; 运行后z的值为(    )。
    A.t
    B.1
    C.f
    D.0
    答:————
15.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_32" o:spid="_x0000_i1056"   type="#_x0000_t75" style='width:261pt;height:18pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image034.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="348" height="24" v:shapes="图片_x0020_32" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image034.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_33"   o:spid="_x0000_i1057" type="#_x0000_t75" style='width:24.6pt;height:15pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image035.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="33" height="20" v:shapes="图片_x0020_33" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image035.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_34"   o:spid="_x0000_i1058" type="#_x0000_t75" style='width:36pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image036.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="48" height="21" v:shapes="图片_x0020_34" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image036.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_35"   o:spid="_x0000_i1059" type="#_x0000_t75" style='width:45.6pt;height:18.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image037.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="61" height="25" v:shapes="图片_x0020_35" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image037.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_36"   o:spid="_x0000_i1060" type="#_x0000_t75" style='width:51pt;height:12.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy01-60.files/image038.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="68" height="17" v:shapes="图片_x0020_36" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image038.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt">  <o:p></o:p></span></p>
    答:————
16.[单选题] 在函数调用时,以下说法正确的是(    )
    A.函数调用后必须带回返回值
    B.实际参数和形式参数可以同名
    C.函数间的数据传递不可以使用全局变量
    D.主调函数和被调函数总是在同一个文件里
    答:————
17.[单选题] 对于以下程序,说法正确的是(    )。    #include &lt;stdio.h&gt;    main()    { FILE *fp;      fp=fopen("quiz.txt", "w");      if(fp!=NULL)      { fprintf(fp,"%s\n", "success!");    fclose(fp);     printf("ok!");      }    }
    A.程序运行后,当前工作目录下存在quiz.txt文件,其中的内容是"ok!"
    B.程序运行后,当前工作目录下存在quiz.txt文件,其中的内容是"success!"
    C.程序运行之前,当前工作目录下一定不存在quiz.txt文件
    D.程序运行之前,当前工作目录下一定存在quiz.txt文件
    答:————
18.[单选题] 若有定义:struct student{int num; char sex; int age;}stu1;下列叙述不正确的是(    )。
    A.student是结构体类型名
    B.struct student是结构体类型名
    C.stu1是用户定义的结构体类型变量名
    D.num,sex,age都是结构体变量stu1的成员
    答:————
19.[单选题] 以下程序段运行后变量a的值为(     )。         int i=1,a=0;        for( ;i&lt;3;i++)            { continue;          a+=i;    }
    A.6
    B.3
    C.0
    D.5
    答:————
20.[单选题] 以下程序中的循环执行了(    )次。   #define N 2   #define M N+1   #define NUM (M+1)*M/2   main()   { int i,n=0;     for(i=0;i&lt;NUM;i++) n++;  printf("%d\n",n);    }
    A.5
    B.6
    C.8
    D.9
    答:————
21.[单选题]         只能向终端输出一个字符的是(    )。
    A.        printf()函数
    B.        scanf()函数
    C.        getchar()函数
    D.        putchar()函数
    答:————
22.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_34" o:spid="_x0000_i1057"   type="#_x0000_t75" style='width:307.8pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image034.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="410" height="21" v:shapes="图片_x0020_34" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image034.png">  <!--[endif]--></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.3
    C.14
    D.28
    答:————
23.[单选题] <p class="MsoNormal"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_79"   o:spid="_x0000_i1096" type="#_x0000_t75" style='width:184.8pt;height:111pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image074.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="246" height="148" v:shapes="图片_x0020_79" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image074.png">  <!--[endif]--></span></p>
    A.int
    B.void
    C.float
    D.不确定
    答:————
24.[单选题] 以下程序段的运行结果是(    )。    char str[3][2]={ 'a','b','c','\0','e','f'};printf("%s",str[0]);
    A.a
    B.abcef
    C.abc\0ef
    D.abc
    答:————
25.[单选题] 下列语句中,符合C语言语法的赋值语句是(    )。
    A.a=7+b+c=a+7;
    B.a=7+b++=a+7;
    C.a=7+b,b++,a+7;
    D.a=7=b,c=a+7;
    答:————
26.[单选题] 逗号表达式 (a=15,a*4),a+15 的值为(    )。
    A.15
    B.30
    C.75
    D.60
    答:————
27.[单选题] 若已定义 int x=5,y=9,z;  语句 z=x&gt;=y; 运行后z的值为(    )。
    A.1
    B.t
    C.0
    D.f
    答:————
28.[单选题] 以下程序的运行结果是(    )。        #define MUL(r) r*r       main()       {int a=2,b=3,c;      c=MUL(a+b)*2;     printf("%d",c);   }
    A.10
    B.14
    C.36
    D.50
    答:————
29.[单选题] <p class="MsoNormal"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_63"   o:spid="_x0000_i1086" type="#_x0000_t75" style='width:197.4pt;height:69pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image064.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="263" height="92" v:shapes="图片_x0020_63" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image064.png">  <!--[endif]--></span></p>
    A.-1
    B.2
    C.1
    D.0
    答:————
30.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_100" o:spid="_x0000_i1116"   type="#_x0000_t75" style='width:356.4pt;height:21.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image094.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="475" height="29" v:shapes="图片_x0020_100" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image094.png">  <!--[endif]--></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.3
    C.4
    D.无限
    答:————
31.[单选题] <p class="MsoNormal" style="line-height:20.0pt;mso-line-height-rule:exactly"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_29" o:spid="_x0000_i1052"   type="#_x0000_t75" style='width:263.4pt;height:20.4pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image029.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="351" height="27" v:shapes="图片_x0020_29" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image029.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_30"   o:spid="_x0000_i1053" type="#_x0000_t75" style='width:69pt;height:19.8pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image030.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="92" height="26" v:shapes="图片_x0020_30" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image030.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_31"   o:spid="_x0000_i1054" type="#_x0000_t75" style='width:75.6pt;height:16.2pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image031.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="101" height="22" v:shapes="图片_x0020_31" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image031.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_32"   o:spid="_x0000_i1055" type="#_x0000_t75" style='width:78.6pt;height:19.8pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image032.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="105" height="26" v:shapes="图片_x0020_32" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image032.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_33"   o:spid="_x0000_i1056" type="#_x0000_t75" style='width:80.4pt;height:18pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image033.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="107" height="24" v:shapes="图片_x0020_33" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image033.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white">   <o:p></o:p></span></span></p>
    答:————
32.[单选题] (    )为非法的字符串常量。
    A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US">  <!--[if gte vml 1]><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><![endif]-->  <!--[if !vml]--><img width="22" height="26" v:shapes="图片_x0020_119" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image122.png">  <!--[endif]--></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">  <!--[if gte vml 1]><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><![endif]-->  <!--[if !vml]--><img width="25" height="24" v:shapes="图片_x0020_120" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image123.png">  <!--[endif]--></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">  <!--[if gte vml 1]><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><![endif]-->  <!--[if !vml]--><img width="29" height="24" v:shapes="图片_x0020_121" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image124.png">  <!--[endif]--></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">  <!--[if gte vml 1]><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><![endif]-->  <!--[if !vml]--><img width="52" height="29" v:shapes="图片_x0020_122" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy01-60.files/image125.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt">  <o:p></o:p></span></p>
    答:————
33.[单选题] 设int x;,则以下语句中错误的输入是(     )
    A.scanf (″%d″,x);
    B.scanf (″%d″,&amp;x);
    C.scanf (″%o″,&amp;x);
    D.scanf (″%x″,&amp;x);
    答:————
34.[单选题] 对二维数组的正确定义是(   )
    A.<p class="MsoNormal" style="display:inline;"><span lang="EN-US">  <!--[if gte vml 1]><v:shape id="图片_x0020_71"   o:spid="_x0000_i1088" type="#_x0000_t75" style='width:120.6pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image066.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="161" height="21" v:shapes="图片_x0020_71" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image066.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_72"   o:spid="_x0000_i1089" type="#_x0000_t75" style='width:120pt;height:18pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image067.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="160" height="24" v:shapes="图片_x0020_72" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image067.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_73"   o:spid="_x0000_i1090" type="#_x0000_t75" style='width:122.4pt;height:15.6pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image068.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="163" height="21" v:shapes="图片_x0020_73" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image068.png">  <!--[endif]--></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">  <!--[if gte vml 1]><v:shape id="图片_x0020_74"   o:spid="_x0000_i1091" type="#_x0000_t75" style='width:115.8pt;height:19.8pt;   mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>   <v:imagedata src="cyy02-60.files/image069.png" o:title=""/>  </v:shape><![endif]-->  <!--[if !vml]--><img width="154" height="26" v:shapes="图片_x0020_74" src="http://wljy.whut.edu.cn/uploadfiles/word/cyy02-60.files/image069.png">  <!--[endif]--></span><span lang="EN-US" style="font-size:12.0pt"><span style="color:white">   <o:p></o:p></span></span></p>
    答:————
35.[单选题] 以下程序段运行后,屏幕的输出结果是(    )。   char str[80];   strcpy(str,"computer");   printf("%d",strlen(str));
    A.7
    B.8
    C.9
    D.10
    答:————
36.[单选题] 若已定义:int a=6;float b=1.5; 要求输出形式为: 6 * 1.50=9.00 ,应选用的正确输出语句是(    )。
    A.printf("%d * %f=%f",a,b,a*b);
    B.printf("%d * %.2f=%.2f",a,b,a*b);
    C.printf("%d * %d=%.2f",a,b,a*b);
    D.printf("%.2f * %.2f=%.2f",a,b,a*b);
    答:————
37.[单选题] 下面叙述正确的是(    )。
    A.for循环只能用于循环次数已经确定的情况
    B.for循环是先执行循环体语句,后判断表达式
    C.在for循环中,不能用break语句跳出循环体
    D.for循环的循环体可包含多条语句,但必须用花括号{ }括起来
    答:————
38.[单选题] 若有函数定义:      int func()      {static int m=0;   return m++;   }   以下程序段运行后屏幕输出为(    )。     int i;      for(i=1;i&lt;=4;i++)          func();       printf("%d",func());
    A.0
    B.1
    C.4
    D.5
    答:————
39.[单选题] 文件操作的一般步骤是(    )。
    A.打开文件,定义文件指针,修改文件,关闭文件
    B.打开文件,定义文件指针,读写文件,关闭文件
    C.定义文件指针,定位指针,读写文件,关闭文件
    D.定义文件指针,打开文件,读写文件,关闭文件
    答:————
40.[单选题] (    )是不正确的叙述。
    A.注释说明只能位于一条语句的后面
    B.C源程序的基本组成单元是函数
    C.C源程序可由一个或多个函数组成
    D.每条语句最后必须有一个分号
    答:————


QQ|手机版|小黑屋|网站地图|无忧答案网 ( 冀ICP备18010495号-1 )

GMT+8, 2024-5-3 20:53

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表