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

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

国家三级(网络技术)机试-试卷 83 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 83 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义整型循环变量 i、j、k 和局部整型变量 value,hum。 在第一层 for 循环中,循环变量 i 从 0 开始,依次递增直到其值等于 10,结束循环,实现对数组 a109中每一行数据按照题目的要求进行处理。在循环体中,把第 i 行的第一个数 ai0赋给 value。在第二层 for 循环中,循环变量i 从 0 开始,依次递增直到其值等于或大于 9,用 if 语句判断,如果数组元素 aij的值小于 value,则把 aij的值赋给 num,在第三层 for 循环中,循环变量 k 从 j 开始,依次递减直到其值等于或小于0,把 aik-1的值赋给 aik,实现把 aij前面的值向后移动一位,退出第三层 for 循环后,把num 的值赋给 ai0。第二层循环依次执行,便实现了对 i 行的数据的处理,再依次执行第一层 for 循环,就可以完成对数组 a109的每行数据的处理。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 16361-2016 Power operated pedestrian doors - Product standard performance characteristics - Pedestrian doorsets other than swing type initially designed for installation wit.pdf DIN EN 16361-2016 Power operated pedestrian doors - Product standard performance characteristics - Pedestrian doorsets other than swing type initially designed for installation wit.pdf
  • DIN EN 16362-2014 Railway applications - Ground based services - Water restocking equipment German version EN 16362 2013《轨道交通 地面服务 水补充设备 德文版本EN 16362-2013》.pdf DIN EN 16362-2014 Railway applications - Ground based services - Water restocking equipment German version EN 16362 2013《轨道交通 地面服务 水补充设备 德文版本EN 16362-2013》.pdf
  • DIN EN 16370-2013 Chemicals used for treatment of water intended for human consumption - Sodium chloride for on site electrochlorination using membrane cells German version EN 1637.pdf DIN EN 16370-2013 Chemicals used for treatment of water intended for human consumption - Sodium chloride for on site electrochlorination using membrane cells German version EN 1637.pdf
  • DIN EN 16377-2013 Characterization of waste - Determination of brominated flame retardants (BFR) in solid waste German version EN 16377 2013《废弃物特性 固体废弃物中溴化阻燃剂(BFR)的测定 德文版本EN 16377-.pdf DIN EN 16377-2013 Characterization of waste - Determination of brominated flame retardants (BFR) in solid waste German version EN 16377 2013《废弃物特性 固体废弃物中溴化阻燃剂(BFR)的测定 德文版本EN 16377-.pdf
  • DIN EN 16378-2013 Cereals - Determination of impurities content in maize (Zea mays L ) and sorghum (Sorghum bicolor L ) German version EN 16378 2013《谷物 玉米(玉蜀黍 Zea mays L )和高粱(蜀黍 So.pdf DIN EN 16378-2013 Cereals - Determination of impurities content in maize (Zea mays L ) and sorghum (Sorghum bicolor L ) German version EN 16378 2013《谷物 玉米(玉蜀黍 Zea mays L )和高粱(蜀黍 So.pdf
  • DIN EN 16380-2014 Chemicals used for treatment of swimming pool water - Potassium peroxomonosulfate German version EN 16380 2013《人类生活用水处理用化学品 过氧单硫酸钾 德文版本EN 16380-2013》.pdf DIN EN 16380-2014 Chemicals used for treatment of swimming pool water - Potassium peroxomonosulfate German version EN 16380 2013《人类生活用水处理用化学品 过氧单硫酸钾 德文版本EN 16380-2013》.pdf
  • DIN EN 16381-2014 Chemicals used for treatment of swimming pool water - Sodium peroxodisulfate German version EN 16381 2013《游泳池水处理用化学品 过氧二硫酸钠 德文版本EN 16381-2013》.pdf DIN EN 16381-2014 Chemicals used for treatment of swimming pool water - Sodium peroxodisulfate German version EN 16381 2013《游泳池水处理用化学品 过氧二硫酸钠 德文版本EN 16381-2013》.pdf
  • DIN EN 16382-2017 Thermal insulation products for building applications - Determination of the pull-through resistance of plate anchors through thermal insulation products German v.pdf DIN EN 16382-2017 Thermal insulation products for building applications - Determination of the pull-through resistance of plate anchors through thermal insulation products German v.pdf
  • DIN EN 16383-2017 Thermal insulation products for building applications - Determination of the hygrothermal behaviour of external thermal insulation composite systems with renders .pdf DIN EN 16383-2017 Thermal insulation products for building applications - Determination of the hygrothermal behaviour of external thermal insulation composite systems with renders .pdf
  • 相关搜索

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

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