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

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

国家三级(网络技术)机试-试卷 62 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 62 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义整型变量 i、j,表示出圈人位置的变量 s1 和出圈人序号的变量 w。并将 s 的值赋给变量 s1(s 的值已在源程序中赋值为 1)。 通过一个 for 循环,将 n 个人的序号存入一维数组 p 中(n 的值已在源程序中赋值为 100)。 再建立一个 for 循环,循环变量 i 从 n 开始,即从 100 开始,依次递减直到其值小于 2 时退出循环。由于每执行一次循环,人数就会减少 1 个,因此,此处的 for 循环应表示为递减方式。在该循环体中,先计算每次出圈人的位置,通过表达式“(s1+m-1)i”计算每次出圈人的位置(m 的值已在源程序赋值为 10)。若所得结果为 0,则说明要开始报数的是最后一个人,在此人前面的那个人就是要出圈的人,再通过一个循环将要出圈的人移到数组最后。

展开阅读全文
相关资源
猜你喜欢
  • BS EN 15343-2007 Plastics - Recycled plastics - Plastics recycling traceability and assessment of conformity and recycled content《塑料 再生塑料 塑料再生可追溯性和一致性与再生内容的评估》.pdf BS EN 15343-2007 Plastics - Recycled plastics - Plastics recycling traceability and assessment of conformity and recycled content《塑料 再生塑料 塑料再生可追溯性和一致性与再生内容的评估》.pdf
  • BS EN 15344-2007 Plastics - Recycled plastics - Characterization of polyethylene (PE) recyclates《塑料 再生塑料 聚乙烯(PE)回收再生物的特性》.pdf BS EN 15344-2007 Plastics - Recycled plastics - Characterization of polyethylene (PE) recyclates《塑料 再生塑料 聚乙烯(PE)回收再生物的特性》.pdf
  • BS EN 15345-2007 Plastics - Recycled plastics - Characterization of polypropylene (PP) recyclates《塑料 再生塑料 聚丙烯(PP)回收再生物的特性》.pdf BS EN 15345-2007 Plastics - Recycled plastics - Characterization of polypropylene (PP) recyclates《塑料 再生塑料 聚丙烯(PP)回收再生物的特性》.pdf
  • BS EN 15346-2014 Plastics Recycled plastics Characterization of poly(vinyl chloride) (PVC) recyclates《塑料 再生塑料 聚氯乙烯(PVC)回收再生物的特性》.pdf BS EN 15346-2014 Plastics Recycled plastics Characterization of poly(vinyl chloride) (PVC) recyclates《塑料 再生塑料 聚氯乙烯(PVC)回收再生物的特性》.pdf
  • BS EN 15347-2007 Plastics - Recycled Plastics - Characterization of plastics waste《塑料 再生塑料 塑料废弃物的特性》.pdf BS EN 15347-2007 Plastics - Recycled Plastics - Characterization of plastics waste《塑料 再生塑料 塑料废弃物的特性》.pdf
  • BS EN 15348-2014 Plastics Recycled plastics Characterization of poly(ethylene terephthalate) (PET) recyclates《塑料 再生塑料 聚对苯二甲酸乙二酯(PET)回收再生物的特性》.pdf BS EN 15348-2014 Plastics Recycled plastics Characterization of poly(ethylene terephthalate) (PET) recyclates《塑料 再生塑料 聚对苯二甲酸乙二酯(PET)回收再生物的特性》.pdf
  • BS EN 15355-2008 Railway applications - Braking - Distributor valves and ndistributor-isolating devices《轨道交通 制动 配送器阀和配送器分离装置》.pdf BS EN 15355-2008 Railway applications - Braking - Distributor valves and ndistributor-isolating devices《轨道交通 制动 配送器阀和配送器分离装置》.pdf
  • BS EN 15357-2011 Solid recovered fuels Terminology definitions and descriptions《固体再生燃料 术语 定义和说明》.pdf BS EN 15357-2011 Solid recovered fuels Terminology definitions and descriptions《固体再生燃料 术语 定义和说明》.pdf
  • BS EN 15358-2011 Solid recovered fuels Quality management systems Particular requirements for their application to the production of solid recovered fuels《固体回收燃料 质量管理体系 固体回收燃料的产品应用.pdf BS EN 15358-2011 Solid recovered fuels Quality management systems Particular requirements for their application to the production of solid recovered fuels《固体回收燃料 质量管理体系 固体回收燃料的产品应用.pdf
  • 相关搜索

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

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