【计算机类职业资格】国家三级(网络技术)机试-试卷111及答案解析.doc

上传人:terrorscript155 文档编号:1331044 上传时间:2019-10-17 格式:DOC 页数:2 大小:29.50KB
下载 相关 举报
【计算机类职业资格】国家三级(网络技术)机试-试卷111及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家三级(网络技术)机试-试卷111及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

国家三级(网络技术)机试-试卷 111 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 111 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:根据题意,本程序中要统计每条记录中的有效票数,因此需要先判断该记录是否有效,然后再对有效的记录做进一步处理,即统计每个人的得票情况。 首先定义两个循环变量 i、j 和一个计数变量 cnt。 指定第一个 for 循环的循环条件,循环变量 i 从 0 开始,等于 100 时结束,每循环一次,变量 i 的值加 1。 在 for 循环中,从第一条记录开始,每执行一次循环则处理一条记录是否满足要求。for 循环语句执行流程大致如下:先将计数变量 cnt 赋值 0(每执行一次循环时,都将重新赋初值 0);然后通过一个 for 循环判断当前记录的 10 个数字是否为 1,每次判断 1 个数字,如果数字等于 1,则计数变量 cnt 的值加 1,当第二个 for 循环执行完毕后,如果计数变量 cm 的值小于等于 5,则再通过一个 for 循环重新判断哪些位置上的数等于 1,并将相应位置上的数值累加 1。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 14186-2008 Advanced technical ceramics - Mechanical properties of ceramic composites at room temperature - Determination of elastic properties by an ultrasonic technique Eng.pdf DIN EN 14186-2008 Advanced technical ceramics - Mechanical properties of ceramic composites at room temperature - Determination of elastic properties by an ultrasonic technique Eng.pdf
  • DIN EN 14187-1-2003 Cold applied joint sealants - Part 1 Test method for the determination of rate of cure German version EN 14187-1 2003《冷用密封胶 第1部分 固化速率测定的试验方法》.pdf DIN EN 14187-1-2003 Cold applied joint sealants - Part 1 Test method for the determination of rate of cure German version EN 14187-1 2003《冷用密封胶 第1部分 固化速率测定的试验方法》.pdf
  • DIN EN 14187-2-2017 Cold applied joint sealants - Test methods - Part 2 Determination of tack free time German version EN 14187-2 2017《冷用密封胶 试验方法 第2部分 不粘时间测定 德文版本EN 14187-2-2017》.pdf DIN EN 14187-2-2017 Cold applied joint sealants - Test methods - Part 2 Determination of tack free time German version EN 14187-2 2017《冷用密封胶 试验方法 第2部分 不粘时间测定 德文版本EN 14187-2-2017》.pdf
  • DIN EN 14187-3-2017 Cold applied joint sealants - Test methods - Part 3 Determination of self-levelling properties German version EN 14187-3 2017《冷用密封胶 试验方法 第3部分 自动找平特性测定 德文版本EN 14.pdf DIN EN 14187-3-2017 Cold applied joint sealants - Test methods - Part 3 Determination of self-levelling properties German version EN 14187-3 2017《冷用密封胶 试验方法 第3部分 自动找平特性测定 德文版本EN 14.pdf
  • DIN EN 14187-4-2017 Cold applied joint sealants - Test methods - Part 4 Determination of the change in mass and volume after immersion in test fuels and liquid chemicals German ver.pdf DIN EN 14187-4-2017 Cold applied joint sealants - Test methods - Part 4 Determination of the change in mass and volume after immersion in test fuels and liquid chemicals German ver.pdf
  • DIN EN 14187-5-2003 Cold applied joint sealants - Part 5 Test method for the determination of the resistance to hydrolysis German version EN 14187-5 2003《冷用密封胶 第5部分 测定耐水解作用的试验方法》.pdf DIN EN 14187-5-2003 Cold applied joint sealants - Part 5 Test method for the determination of the resistance to hydrolysis German version EN 14187-5 2003《冷用密封胶 第5部分 测定耐水解作用的试验方法》.pdf
  • DIN EN 14187-6-2017 Cold applied joint sealants - Test method - Part 6 Determination of the adhesion cohesion properties after immersion in test fuels and liquid chemicals German v.pdf DIN EN 14187-6-2017 Cold applied joint sealants - Test method - Part 6 Determination of the adhesion cohesion properties after immersion in test fuels and liquid chemicals German v.pdf
  • DIN EN 14187-7-2003 Cold applied joint sealants - Part 7 Test method for the determination of the resistance to flame German version EN 14187-7 2003《冷用密封胶 第7部分 耐火性测定的试验方法》.pdf DIN EN 14187-7-2003 Cold applied joint sealants - Part 7 Test method for the determination of the resistance to flame German version EN 14187-7 2003《冷用密封胶 第7部分 耐火性测定的试验方法》.pdf
  • DIN EN 14187-8-2017 Cold applied joint sealants - Test methods - Part 8 Determination of the artificial weathering by UV-irradiation German version EN 14187-8 2017《冷用密封胶 试验方法 第8部分 .pdf DIN EN 14187-8-2017 Cold applied joint sealants - Test methods - Part 8 Determination of the artificial weathering by UV-irradiation German version EN 14187-8 2017《冷用密封胶 试验方法 第8部分 .pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1