收藏 分销(赏)

C语言程序设计(工业和信息化普通高等教育“十二五”规划教材立项项目).doc

上传人:快乐****生活 文档编号:4458104 上传时间:2024-09-23 格式:DOC 页数:11 大小:46KB
下载 相关 举报
C语言程序设计(工业和信息化普通高等教育“十二五”规划教材立项项目).doc_第1页
第1页 / 共11页
C语言程序设计(工业和信息化普通高等教育“十二五”规划教材立项项目).doc_第2页
第2页 / 共11页
点击查看更多>>
资源描述
<p>C语言程序设计(工业和信息化普通高等教育“十二五”规划教材立项项目) 第1章 绪论 一、选择题 C &nbsp;D &nbsp;B &nbsp;C &nbsp;D &nbsp;B &nbsp;B &nbsp;D &nbsp;A &nbsp;C &nbsp;A 二、填空题 1. 二进制(□代表空格)数、程序存储控制 2. 73 &nbsp;3b &nbsp;59 &nbsp; 3. 1110101 &nbsp;165 &nbsp;75 4. 11011010.1 5. 1024 &nbsp;1024 6. 802b &nbsp;ffd4 &nbsp;ffd5 &nbsp;4f &nbsp;4f &nbsp;4f 7. 65535 &nbsp;32768 &nbsp;-1 &nbsp;-63768 8. ASCII码 9. 硬件系统、软件系统 10. .C &nbsp;.OBJ &nbsp;.EXE 11. 英文字母、数字、下划线、字母或下划线 12. main()、函数体 第2章 数据及运算 一、选择题 &nbsp;B &nbsp;C &nbsp;A &nbsp;C &nbsp;A &nbsp;A &nbsp;B &nbsp;A &nbsp;D &nbsp;D 二、填空题 1. a=-0438 &nbsp; &nbsp;a=b-a=3 2. 58 &nbsp;8008 &nbsp;ff &nbsp;8000 &nbsp;ff80 &nbsp;7dc 3. &#39;A&#39; &nbsp;&#39;\n&#39; &nbsp; &#39;\t&#39; 4. 452、5、2、0、26 5. 2011 &nbsp; 9 &nbsp; &nbsp;2021 6. (x*x+y*y)/(x-y) &nbsp; 3.14*R*R*R*3/4 &nbsp;8*(x+9*(10*(7-y)+20)) 7. -3 -3 65533 4294967293 ² ² -3 &nbsp; -3 &nbsp;65533 &nbsp; 4294967293 &nbsp;² &nbsp; ² -3 &nbsp;65533 &nbsp;65533 &nbsp;65533 &nbsp;² &nbsp;² -3 &nbsp;-3 &nbsp;65533 &nbsp;4294967293 &nbsp;² &nbsp;² -84 &nbsp;-84 &nbsp;65452 &nbsp;4294967212 &nbsp;¼ &nbsp;¼ 97 &nbsp;97 &nbsp;97 &nbsp;97 &nbsp;a &nbsp;a 第3章 顺序结构程序设计 一、选择题 &nbsp; D &nbsp;B &nbsp;D &nbsp;A &nbsp;B &nbsp;A &nbsp;B &nbsp;C &nbsp;C 二、填空题 1. a=12345,b=-2.0e+02□,c=006.50 &nbsp; &nbsp;2. □□□□12##,12□□□□## 3.141592600000000070000000000000000000000## 3. 03007□8.50,71.82,Aa↙ 4. a=12,b=345,x=91.234↙ 5. scanf(“%f”, &amp;r); &nbsp; &nbsp;printf(“radius is %.2f,area=%.3f”, r,s); 三、编程题 1、 #include</p><stdio.h>void main() { &nbsp; &nbsp;int x,y,a,b,c; &nbsp; printf(&quot;输入一个三位数x\n&quot;); &nbsp; &nbsp; &nbsp; scanf(&quot;%d&quot;,&amp;x); &nbsp; &nbsp; a=x/100; &nbsp; y=x-100*a; &nbsp; &nbsp; &nbsp; b=y/10; &nbsp; &nbsp; &nbsp; c=y-10*b; &nbsp; &nbsp; printf(&quot;%d%d%d\n&quot;,c,b,a); } 2、 #include<stdio.h>void main(){ &nbsp; &nbsp; float r,s,v; &nbsp; &nbsp; printf(&quot;输入球的半径r\n&quot;); &nbsp; &nbsp; scanf(&quot;%f&quot;,&amp;r); &nbsp; &nbsp; v=4/3*3.1415926*r*r*r; &nbsp; &nbsp; s=4*3.1415926*r*r; &nbsp; &nbsp; printf(&quot;v=%f,s=%f\n&quot;,v,s); } 第4章 选择结构程序设计 一、选择题 &nbsp;D &nbsp;B &nbsp;C &nbsp;D &nbsp;A &nbsp;D &nbsp;A &nbsp;A 二、填空题 1. a=2,b=1 2. 1,0,1 3. 1,0,3 4. c=getchar() &nbsp; c&gt;=’0’&amp;&amp;c&lt;=’9’ c=&quot;&quot;&gt;=’A’&amp;&amp;c&lt;=’z’ c=&quot;&quot;&gt;=’a’&amp;&amp;c&lt;=’c’ 5.=&quot;&quot; op=&quot;&quot; break=&quot;&quot; 6.=&quot;&quot; x:y=&quot;&quot; u:z=&quot;&quot; 7.=&quot;&quot; c=&quot;&quot;&gt;t &nbsp;c&gt;=50 第5章 循环结构程序设计 一、选择题 &nbsp;A &nbsp;A &nbsp;D &nbsp;C &nbsp;AB &nbsp;D &nbsp;A &nbsp;A &nbsp;D &nbsp;D 二、填空题 1. 4,3,0 2. 2,5,3 3. BCDEFGHI 4. 0 5. #*&amp;&amp;&amp;####&amp; 6. (m%10)*(m%10) &nbsp; &nbsp;m/10 7. f*q 8. fac=fac*(i+1)*(i+2) &nbsp; &nbsp; fabs(xn/fac) 9. s=s+j s==i 10. i&lt;10 &nbsp; j%3!=0 11. j=1 k&lt;=6 12.=&quot;&quot; j=&quot;&quot; k=&quot;&quot;&gt;=0 第6章 函数 一、选择题 &nbsp;C &nbsp;D &nbsp;B &nbsp;D &nbsp;B &nbsp;D &nbsp;D &nbsp;A &nbsp;A &nbsp;B &nbsp;A &nbsp;A &nbsp;D &nbsp;C &nbsp;A 二、填空题 1. &nbsp;4,3,5 &nbsp; 2. &nbsp;x=8, r=16 3. &nbsp;15 4. &nbsp;4 5. &nbsp;□□□7□□□8□□□9 6. &nbsp;4 7. &nbsp;int fun(int); &nbsp; &nbsp;return m; 8. &nbsp;double s1,s2; &nbsp; &nbsp;return v; 第7章 指针 一、选择题 &nbsp;A &nbsp;B &nbsp;C &nbsp;A &nbsp;A &nbsp;A 二、填空题 1. &nbsp; 7 2. &nbsp; 45 3. □□-5,□-12,□□-7 4. □□15,□□15 □□22,□□22 &nbsp; □□37,□□37 5. □□15,□□22,□□37 &nbsp; □□15,□□22,□□37 6. &nbsp; num=*b; &nbsp; num=*c; &nbsp; 第8章 数组 一、选择题: D D D B D C D A D B 二、填空题 1. 5,15.000000 2. x=0 &nbsp; x=0 3. □□□□□□10□□□□□□13□□□□□□15□□□□□□16□□□□□□17□□□□□□19 4. i=1 b[i]=a[i-1]+a[i] i%3 5. a[i]=a[i+1] p&lt;a+10-count 6. void fun(int x[],int n,int p[]) &nbsp; scanf(“%d”,p) &nbsp; int *p1=x+n 第9章 字符串 一、选择题: C D C C A D A A 二、填空题 1. I love China! &nbsp; China! 2. sw* 3. defgged 4. CHINA&lt;CHINAESE 5. 7654321 6. 123 &nbsp; 56 &nbsp; 9 7. 123 &nbsp; 56 &nbsp; 9 8. □□□□2 第10章 结构体、联合体与枚举 一、选择题 1~5 &nbsp;B A C A B 6~10 &nbsp;A B B A B 二、填空题 1. a□□□□□□□d &nbsp; abc□□□□□def &nbsp; ghi□□□□□mno &nbsp; hi□□□□□□ef 2. i=60501 ch0=101,ch1=141 ch0=A,ch1=a 3. 5□□4□□3□□2□□1□□0□□-1□□-2□□-3□□-4 4. 5□9 5. 1□□□2□□□3 6. sum=0 &nbsp; &nbsp; &nbsp; p++ 第11章 位和位段 一、选择题 C C B A C A A B 二、填空题 1. x=11y=17z=11 2. 16 3. 7 4. 051 第12章 文件 一、选择题 &nbsp;A &nbsp; &nbsp;A &nbsp; &nbsp;C &nbsp; &nbsp;A A A 第13章 编译预处理 一、填空题 1. The result is 16. The result is 4. The result is 14. The result is 100. The result is 30. 2. 48 3. 8 12 4. Grand total=64 5. 6789:;stu 注:□代表空格 <!--=6--><!--=’c’--><!--=’z’--><!--=’9’--></stdio.h></stdio.h>
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传
相似文档                                   自信AI助手自信AI助手

当前位置:首页 > 通信科技 > 开发语言

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服