- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
c语言试卷(C language test paper)
c语言试卷(C language test paper)
There are 3 major items in this volume:
A single choice (40 items, a total of 40 points)
1, the output string can automatically output a return, line feed function is () function. (1 points)
A, putc (), B, puts ()
C, printf (), D, putchar ()
2, the position of main () in the C program. (1 points)
A can be arbitrary B and must serve as the first function
C must be the last function, D, and must be placed after the function it calls
3, if n is an integer variable, execute for (n=10; n=0; n--); the loop body in the loop (). (1 points)
A, infinite loop B, execute 10 times
C, execute D once, and do not execute at one time
4, there are the following procedures main () {int, k=4, n=0; for ((nk)) {n++; if (n%3) continue; k--;}printf (%d,%d\n), K, n);}, the output of the program after the operation is () =0. (1 points)
A, 1,1, B, 2,2
C, 3,3, D, 4,4
5, with a definition: int, m=1, n=-1; then execute the statement printf (%d\n), (m--++n); after the output is (). (1 points)
A, -1, B, 0
C, 1, D, 2
6. In the C language, the number of bytes that (int, char, and short) occupy in memory. (1 points)
A, defined by the users own B, is 2 bytes
C is arbitrary D, determined by the machine word size of the machine used
7 、 in C, all functions needed in a program must (). (1 points)
A, in the program to define the B, to be pointed out in front of the program file definition
C, to be defined in the program, or in the given header file, there are related definitions, D, due to the flexibility of C language, can be used as needed
8, in the following relational operators, () the lowest priority. (1 points)
A, B , =
C, = = D,
9, the following procedures main () {double D; float f; long l; int i; i=f=l=d=20/3; printf (%d%ld%.1f \n, I, %.1f, L, F, d);} the output after execution is (). (1 points)
A, 666, 6, B, 666.7, 6.7
C, 666, 6.7, D, 666.7, 6
10 、 assuming all variables are integral, then the values of the expressions (a=2, b=5, b++, a+b) are (). (1 points)
A, 7,
您可能关注的文档
- 02213 精密加工与特种加工大纲doc - 苏州自学考试(02213 precision machining and special machining program doc - self taught Examination in Suzhou).doc
- +有用的 第11章_抗肿瘤药(Anti tumor drug + useful eleventh chapter _).doc
- 03林芬芳(明星志愿3)(03 Lin fragrance (Star wish 3)).doc
- 03年度社区工作者资格考试试题(03 annual community worker qualification examination questions).doc
- 0.4王培生谈太极拳八法要义(0.4 Wang Pearson on the eight principles of Taijiquan).doc
- (网络安全)((Network Security)).doc
- 0006 第6章集成运算(0006, sixth chapters Integrated Computing).doc
- 05-电子阅读项目iphone版ue设计(05- electronic reading project, iPhone version, UE design).doc
- 05-2-1.瑞卡租车用减法抢市场份额(By car 05-2-1. with subtraction grab the market share).doc
- 06-07学年度第二学期期中考试试卷 (初二语文)(06-07 semester second midterm examination paper (two Chinese language)).doc
- 中国国家标准 GB/T 18233.4-2024信息技术 用户建筑群通用布缆 第4部分:住宅.pdf
- GB/T 18233.4-2024信息技术 用户建筑群通用布缆 第4部分:住宅.pdf
- GB/T 18978.210-2024人-系统交互工效学 第210部分:以人为中心的交互系统设计.pdf
- 《GB/T 18978.210-2024人-系统交互工效学 第210部分:以人为中心的交互系统设计》.pdf
- 中国国家标准 GB/T 18978.210-2024人-系统交互工效学 第210部分:以人为中心的交互系统设计.pdf
- GB/T 16649.2-2024识别卡 集成电路卡 第2部分:带触点的卡 触点的尺寸和位置.pdf
- 《GB/T 16649.2-2024识别卡 集成电路卡 第2部分:带触点的卡 触点的尺寸和位置》.pdf
- 中国国家标准 GB/T 16649.2-2024识别卡 集成电路卡 第2部分:带触点的卡 触点的尺寸和位置.pdf
- GB/T 17889.4-2024梯子 第4部分:铰链梯.pdf
- 《GB/T 17889.4-2024梯子 第4部分:铰链梯》.pdf
最近下载
- 浙江省重点科技创新团队总结报告.pdf
- NB_SH_T 6056-2022CN 轻质烃及发动机燃料中有机氯含量测定 微库仑法.docx
- 钳工工艺技能与训练全套教学课件.pptx
- 东菱DL-T06(BM1230)面包机说明书.pdf
- 环氧树脂生产基本工艺.doc
- 炼铁生产 球团生产工艺操作与设备 项目四:生产出9-16mm小球 .ppt
- 人教版六年级上册数学第六单元综合测试卷(含答案).doc VIP
- 阿法拉伐分油机中文说明Instruction book1.pdf
- 人教版数学六年级上册第六单元综合提优卷(含答案).docx VIP
- 人教版数学六年级上册第五单元综合提优卷(含答案).docx VIP
文档评论(0)