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

展开阅读全文
相关资源
猜你喜欢
  • BS S 162-1990 Specification for 18% nickel-cobalt-molybdenum maraging steel forging stock forgings bars and parts (1800 MPa double vaccuum melted)《锻坯、锻件、棒材和零件用18%镍-钴-钼马氏体时效钢(1800MPa 双倍真空熔化)规范》.pdf BS S 162-1990 Specification for 18% nickel-cobalt-molybdenum maraging steel forging stock forgings bars and parts (1800 MPa double vaccuum melted)《锻坯、锻件、棒材和零件用18%镍-钴-钼马氏体时效钢(1800MPa 双倍真空熔化)规范》.pdf
  • BS S 163-1990 Specification for nickel-chromium-molybdenum-vanadium steel forging stock forgings bars and parts (1900 MPa limiting ruling section 100 mm)《锻坯 锻件 棒材和零件用镍-铬-钼-钒钢规范(1900MPa 限定控制剖面100mm.pdf BS S 163-1990 Specification for nickel-chromium-molybdenum-vanadium steel forging stock forgings bars and parts (1900 MPa limiting ruling section 100 mm)《锻坯 锻件 棒材和零件用镍-铬-钼-钒钢规范(1900MPa 限定控制剖面100mm.pdf
  • BS S 164-2002 1 % Chromium-molybdenum steel billets bars forgings and parts (1150 to 1300 MPa Limiting ruling section 16 mm) (Suitable for welding)《航空航天系列 1%铬-钼钢坯 棒材 锻件和部件(1150至1300 MPa 限制截面部分为1.pdf BS S 164-2002 1 % Chromium-molybdenum steel billets bars forgings and parts (1150 to 1300 MPa Limiting ruling section 16 mm) (Suitable for welding)《航空航天系列 1%铬-钼钢坯 棒材 锻件和部件(1150至1300 MPa 限制截面部分为1.pdf
  • BS S 206-1999 Chromium-nickel-aluminium corrosion resisting steel (precipitation hardening) rod cold drawn wire and springs《铬镍铝耐腐蚀钢(沉淀硬化)棒材、冷拉线材和弹簧》.pdf BS S 206-1999 Chromium-nickel-aluminium corrosion resisting steel (precipitation hardening) rod cold drawn wire and springs《铬镍铝耐腐蚀钢(沉淀硬化)棒材、冷拉线材和弹簧》.pdf
  • BS S 532-1969 Specification for chromium-nickel-copper-molybdenum corrosion-resisting steel sheet and strip (precipitation hardening 980 1180 MPa)《铬-镍-铜-钼耐腐蚀钢薄板材和带材规范(沉淀硬化 980 1180MPa)》.pdf BS S 532-1969 Specification for chromium-nickel-copper-molybdenum corrosion-resisting steel sheet and strip (precipitation hardening 980 1180 MPa)《铬-镍-铜-钼耐腐蚀钢薄板材和带材规范(沉淀硬化 980 1180MPa)》.pdf
  • BS S 533-1969 Specification for chromium-nickel-copper-molybdenum corrosion-resisting steel sheet and strip (precipitation hardening 1180 1370 MPa)《铬-镍-铜-钼耐腐蚀钢薄板材和带材规范(沉淀硬化 1180 1370MPa)》.pdf BS S 533-1969 Specification for chromium-nickel-copper-molybdenum corrosion-resisting steel sheet and strip (precipitation hardening 1180 1370 MPa)《铬-镍-铜-钼耐腐蚀钢薄板材和带材规范(沉淀硬化 1180 1370MPa)》.pdf
  • BS S 534-1969 Specification for chromium-molybdenum steel sheet and strip 880 1080 MPa suitable for welding《880 1080 MPa适合于焊接的铬-钼钢薄板材和带材规范》.pdf BS S 534-1969 Specification for chromium-molybdenum steel sheet and strip 880 1080 MPa suitable for welding《880 1080 MPa适合于焊接的铬-钼钢薄板材和带材规范》.pdf
  • BS S 535-1969 Specification for chromium-molybdenum steel sheet and strip (1150 1300 Mpa) (suitable for welding)《铬-钼钢薄板材和带材规范(1150 1300MPa)(适用于焊接)》.pdf BS S 535-1969 Specification for chromium-molybdenum steel sheet and strip (1150 1300 Mpa) (suitable for welding)《铬-钼钢薄板材和带材规范(1150 1300MPa)(适用于焊接)》.pdf
  • BS SP 113-1954 Specification for cadmium plated close tolerance shear pins for aircraft《航空用镀镉紧公差安全销规范》.pdf BS SP 113-1954 Specification for cadmium plated close tolerance shear pins for aircraft《航空用镀镉紧公差安全销规范》.pdf
  • 相关搜索

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

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