【计算机类职业资格】国家三级(网络技术)机试-试卷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,则说明要开始报数的是最后一个人,在此人前面的那个人就是要出圈的人,再通过一个循环将要出圈的人移到数组最后。

展开阅读全文
相关资源
猜你喜欢
  • IEC 61936-1-2010 Power installations exceeding 1 kV a.c - Part 1 Common rules《交流电压大于1 kV的电力装置.第1部分 通用规则》.pdf IEC 61936-1-2010 Power installations exceeding 1 kV a.c - Part 1 Common rules《交流电压大于1 kV的电力装置.第1部分 通用规则》.pdf
  • IEC 61937-1-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 1 General《数字音频.应用IEC 60958的非线性脉冲编码调制(PCM)音频位流接口.第1部分 总则》.pdf IEC 61937-1-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 1 General《数字音频.应用IEC 60958的非线性脉冲编码调制(PCM)音频位流接口.第1部分 总则》.pdf
  • IEC 61937-2-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 2 Burst-info《数字音频.用于IEC 60958的非线性脉冲编码调制(PCM)编码音频位流的接口.第2部分 脉冲串信息 》.pdf IEC 61937-2-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 2 Burst-info《数字音频.用于IEC 60958的非线性脉冲编码调制(PCM)编码音频位流的接口.第2部分 脉冲串信息 》.pdf
  • IEC 61937-6 Edition 2.1-2014 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 6 Non-linear PCM bitstreams according to the MPEG-2 AAC.pdf IEC 61937-6 Edition 2.1-2014 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 6 Non-linear PCM bitstreams according to the MPEG-2 AAC.pdf
  • IEC 61943-1999 Integrated circuits - Manufacturing line approval application guideline《集成电路 生产线批准应用指南》.pdf IEC 61943-1999 Integrated circuits - Manufacturing line approval application guideline《集成电路 生产线批准应用指南》.pdf
  • IEC 61947-1-2002 Electronic projection - Measurement and documentation of key performance criteria - Part 1 Fixed resolution projectors《电子投影.主要性能标准的测量和文件化.第1部分 固定分辨投影仪》.pdf IEC 61947-1-2002 Electronic projection - Measurement and documentation of key performance criteria - Part 1 Fixed resolution projectors《电子投影.主要性能标准的测量和文件化.第1部分 固定分辨投影仪》.pdf
  • IEC 61947-2-2001 Electronic projection - Measurement and documentation of key performance criteria - Part 2 Variable resolution projectors《电子投影 关键性能判据的测量和文件编制 第2部分:可变分辨力投影仪》.pdf IEC 61947-2-2001 Electronic projection - Measurement and documentation of key performance criteria - Part 2 Variable resolution projectors《电子投影 关键性能判据的测量和文件编制 第2部分:可变分辨力投影仪》.pdf
  • IEC 61950-2007 Cable management systems - Specifications for conduit fittings and accessories for cable installations for extra-heavy duty electrical steel conduit《电缆布线系统.超重型电器钢导管用导管配件和附件规范》.pdf IEC 61950-2007 Cable management systems - Specifications for conduit fittings and accessories for cable installations for extra-heavy duty electrical steel conduit《电缆布线系统.超重型电器钢导管用导管配件和附件规范》.pdf
  • IEC 61954 Edition 2.1-2013 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf IEC 61954 Edition 2.1-2013 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf
  • 相关搜索

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

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