- 1、本文档共19页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
vc第二章(VC second chapters)
vc第二章(VC second chapters)
The second chapter is the sequential structure
One choice question
1, the answer is C
Null statement
Null statements indicate that the program does not produce any action during execution, but the arbitrary use of null statements causes errors in logic and is carefully used.
2, the answer is B
Test site: statement
The statement must end with a semicolon. A, C, and D expressions do not have semicolons, so they cannot form statements.
3, the answer is C
Test points: output statements and arithmetic expressions
Int x=13, y=4 x, y; x/y as integer, so take only integer part (rounding method), a value of 3,
Assign 3 to x, and the value of the entire x=x/y expression is the value of the variable x on the left, so x is 3 and output is%d, signed decimal output.
Note: integer divided by integer, the result is still integer.
4, the answer is A
A, B as integer, a/b a, B is an integral part of business income, so it is 0, then the 0 is assigned to
C, so the value of C is 0.
Note: integer divided by integer, the result is still integer.
5, the answer is D
Test sites: notes, variables, data inputs, and outputs
The notes must use / * at the beginning and end with *, which /, * can not have other symbols, nor is the space bar. The computer does not compile the annotation section, meaning that annotations do not have any effect on the C language program, and can insert notes wherever they can insert spaces. However, annotations cannot be nested, such as: /*12212/*1221*/22*/
Variables should be defined first and then used. And to satisfy the naming rules of the user identifier.
There is no / * and * A, so no comment. Therefore, A answer wrong.
B defines r as an integer, does not make errors at compile time, automatically converts type, automatically calculates the value of an expression into a value assigned to the left of the assignment number and then assignments. So the variable R is integer, thats correct.
The C variable s is floating-point, that is, the
您可能关注的文档
- da控制面板说明(DA control panel instructions).doc
- db2 环境 设置技巧篇(DB2 environment settings tips).doc
- dbgrid的实用技巧(Practical skills of DBGrid).doc
- c语言分析运行结果(更正)题库(C language analysis of running results (correction) question bank).doc
- c语言相机管理系统(C language camera management system).doc
- dde决策(DDE decision making).doc
- dcs中简单控制学习问答(Simple control learning question and answer in DCS).doc
- dds ad9850试用手记(dds ad9850试用手记).doc
- c语言试题(C language test questions).doc
- d10r型推土机变速系统故障的排查(Troubleshooting of speed change system for type D10R bulldozer).doc
- 第11课 以社会主义核心价值观引领文化建设 教案 中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 第14课 推进绿色发展 教案 中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 第2课 中国特色社会主义的开创和发展 教案 中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 第9课 坚持依宪治国 教案 中职高教版 职业道德与法治.pdf
- 第5课 推动高质量发展(教学设计)中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 第1课 社会主义在中国的确立与探索 教案 中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 第4课 社会主义基本经济制度 教案 中职思想政治《中国特色社会主义》高教版基础模块.pdf
- 2024北京海淀区高二(下)期末英语试题和答案.pdf
- 2024北京东城区高二(下)期末政治试题和答案.pdf
- 2024北京海淀区初一(下)期末历史试题和答案.pdf
最近下载
- 小学生安全教育省公开课金奖全国赛课一等奖微课获奖PPT课件.pptx
- 2024年江西工商职业技术学院单招职业技能测试题库(考试直接用).docx VIP
- 仓储管理绩效考核标准,仓库、物资、信息管理考核标准.pdf
- 2025年金钥匙科技竞赛试题及答案 .pdf VIP
- 吡非尼酮联合尼达尼布在制备治疗尘肺病的药物中的应用.pdf VIP
- 2024年全球及中国氮氧化铝(AlON)透明陶瓷行业头部企业市场占有率及排名调研报告.docx
- 2022-2024年高考数学试题分类汇编:立体几何与空间向量(原卷版).pdf VIP
- GB∕T 35853.7-2018 航空航天等效术语表 第7部分:飞行器可靠性(高清版).pdf
- 2023-2024学年北京八年级数学下学期期中分类汇编:勾股定理【五大题型】解析版.pdf VIP
- 电子设备、产品供货方案、安装、验收、售后服务方案.pdf VIP
文档评论(0)