【计算机类职业资格】国家三级(网络技术)机试-试卷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。

展开阅读全文
相关资源
猜你喜欢
  • ASTM D6948-2003 Standard Practice for Application of Refined Coal Tar (Ready to Use Commercial Grade)《精制煤焦油应用的标准实施规范(现成品、商用级)》.pdf ASTM D6948-2003 Standard Practice for Application of Refined Coal Tar (Ready to Use Commercial Grade)《精制煤焦油应用的标准实施规范(现成品、商用级)》.pdf
  • ASTM D6950-2004 Standard Practice for Application of Heat Weldable Atactic Polypropylene (APP) Modified Bituminous Waterproofing Membranes Systems for New Building Decks《新建筑物平台用热力可.pdf ASTM D6950-2004 Standard Practice for Application of Heat Weldable Atactic Polypropylene (APP) Modified Bituminous Waterproofing Membranes Systems for New Building Decks《新建筑物平台用热力可.pdf
  • ASTM D6951 D6951M-2009 8750 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf ASTM D6951 D6951M-2009 8750 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf
  • ASTM D6951 D6951M-2009(2015) 7503 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf ASTM D6951 D6951M-2009(2015) 7503 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf
  • ASTM D6951 D6951M-2018 red 8125 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications.pdf ASTM D6951 D6951M-2018 red 8125 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications.pdf
  • ASTM D6951-2003 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf ASTM D6951-2003 Standard Test Method for Use of the Dynamic Cone Penetrometer in Shallow Pavement Applications《浅层路面上使用的动力圆锥触探仪的标准试验方法》.pdf
  • ASTM D6953-2003 Standard Test Method for Determination of Antioxidants and Erucamide Slip Additives in Polyethylene Using Liquid Chromatography (LC)《用液相色谱法(LC)测定聚乙烯中抗氧化剂和Erucamide .pdf ASTM D6953-2003 Standard Test Method for Determination of Antioxidants and Erucamide Slip Additives in Polyethylene Using Liquid Chromatography (LC)《用液相色谱法(LC)测定聚乙烯中抗氧化剂和Erucamide .pdf
  • ASTM D6953-2011 3125 Standard Test Method for Determination of Antioxidants and Erucamide Slip Additives in Polyethylene Using Liquid Chromatography (LC)《聚乙烯中抗氧化剂和酰胺纤维润滑添加剂液相色谱法(LC.pdf ASTM D6953-2011 3125 Standard Test Method for Determination of Antioxidants and Erucamide Slip Additives in Polyethylene Using Liquid Chromatography (LC)《聚乙烯中抗氧化剂和酰胺纤维润滑添加剂液相色谱法(LC.pdf
  • ASTM D6954-2004 Standard Guide for Exposing and Testing Plastics that Degrade in the Environment by a Combination of Oxidation and Biodegradation《氧化和生物降解组合的环境中暴露和测试塑料降解的标准指南》.pdf ASTM D6954-2004 Standard Guide for Exposing and Testing Plastics that Degrade in the Environment by a Combination of Oxidation and Biodegradation《氧化和生物降解组合的环境中暴露和测试塑料降解的标准指南》.pdf
  • 相关搜索

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

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