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

展开阅读全文
相关资源
猜你喜欢
  • EN 4830-002-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 002 Specification of performance《航空航天系列 EN46.pdf EN 4830-002-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 002 Specification of performance《航空航天系列 EN46.pdf
  • EN 4830-003-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 003 Module - Product standard《航空航天系列 EN4639-.pdf EN 4830-003-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 003 Module - Product standard《航空航天系列 EN4639-.pdf
  • EN 4830-004-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 004 Extraction tool - Product standard《航空航天系.pdf EN 4830-004-2015 en Aerospace series - Connectors optical rectangular modular operating temperature 125 for EN 4639-10X contacts - Part 004 Extraction tool - Product standard《航空航天系.pdf
  • EN 484-1997 en Specification for Dedicated Liquefied Petroleum Gas Appliances - Independent Hotplates Including Those Incorporating a Grill for Outdoor Use《专用液化石油气器具规范 包括室外用配套烤架的独立.pdf EN 484-1997 en Specification for Dedicated Liquefied Petroleum Gas Appliances - Independent Hotplates Including Those Incorporating a Grill for Outdoor Use《专用液化石油气器具规范 包括室外用配套烤架的独立.pdf
  • EN 485-1-2008 6875 Aluminium and aluminium alloys - Sheet strip and plate - Part 1 Technical conditions for inspection and delivery (Incorporates Amendment A1 2009)《铝和铝合金 薄板材 带材和厚板.pdf EN 485-1-2008 6875 Aluminium and aluminium alloys - Sheet strip and plate - Part 1 Technical conditions for inspection and delivery (Incorporates Amendment A1 2009)《铝和铝合金 薄板材 带材和厚板.pdf
  • EN 485-1-2016 en Aluminium and aluminium alloys - Sheet strip and plate - Part 1 Technical conditions for inspection and delivery《铝及铝合金板-带材和板材-第1部分 检验和交货技术条件》.pdf EN 485-1-2016 en Aluminium and aluminium alloys - Sheet strip and plate - Part 1 Technical conditions for inspection and delivery《铝及铝合金板-带材和板材-第1部分 检验和交货技术条件》.pdf
  • EN 485-2-2013 9145 Aluminium and aluminium alloys - Sheet strip and plate - Part 2 Mechanical properties《铝和铝合金 片材 带材和板材 第2部分 机械特性》.pdf EN 485-2-2013 9145 Aluminium and aluminium alloys - Sheet strip and plate - Part 2 Mechanical properties《铝和铝合金 片材 带材和板材 第2部分 机械特性》.pdf
  • EN 485-2-2016 en Aluminium and aluminium alloys - Sheet strip and plate - Part 2 Mechanical properties《铝及铝合金板-带材和板材-第2部分 机械性能》.pdf EN 485-2-2016 en Aluminium and aluminium alloys - Sheet strip and plate - Part 2 Mechanical properties《铝及铝合金板-带材和板材-第2部分 机械性能》.pdf
  • EN 485-3-2003 en Aluminium and aluminium alloys Sheet strip and plate Part 3 Tolerances on dimensions and form for hot-rolled products《铝和铝合金 带材 薄板和板材 第3部分 热轧制品的尺寸和外形公差》.pdf EN 485-3-2003 en Aluminium and aluminium alloys Sheet strip and plate Part 3 Tolerances on dimensions and form for hot-rolled products《铝和铝合金 带材 薄板和板材 第3部分 热轧制品的尺寸和外形公差》.pdf
  • 相关搜索

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

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