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

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

国家三级(网络技术)机试-试卷 77 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 77 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义整型循环变量 i、j 和局部变量 tmp。 在 for 循环语句中,循环变量 i 从 0 开始,依次递增直到其值等于或大于 MAX,用 if 条件语句判断如果 ai和 bi同时为奇数,由 ai的十位数字为新数的千位数字,个位数字为新数的个位数字,bi的十位数字为新数的百位数字,个位数字为新数的十位数字,把这个新组成的数存入数组元素 ccn,同时数组下标变量 cn 加 1。 在第一层 for 循环语句中,循环变量 i 从 0 开始,依次递增直到其值等于或大于 cnt,在第二层循环中,循环变量 j 从 i+1 开始,依次递增直到其值等于 cnt,用 if 条件语句判断如果数组元素 ci大于 cj,则两者进行互换,实现数组 c 中的数按从小到大的顺序进行排序。

展开阅读全文
相关资源
猜你喜欢
  • GOST R 55598-2013 Associated gas Classification criterions《伴生气 分类标准》.pdf GOST R 55598-2013 Associated gas Classification criterions《伴生气 分类标准》.pdf
  • GOST R 55599-2013 High pressure pipeline assembly units and components above 10 up to 100 MPa General technical requirements《10至100 MPa高压管道装配组件和部件 通用技术要求》.pdf GOST R 55599-2013 High pressure pipeline assembly units and components above 10 up to 100 MPa General technical requirements《10至100 MPa高压管道装配组件和部件 通用技术要求》.pdf
  • GOST R 55600-2013 Pipes and pipeline components for pressure over 100 to 320 MPa Norms and methods of strength calculation《压力为100至320 MPa的管材和管道部件 强度计算规范和方法》.pdf GOST R 55600-2013 Pipes and pipeline components for pressure over 100 to 320 MPa Norms and methods of strength calculation《压力为100至320 MPa的管材和管道部件 强度计算规范和方法》.pdf
  • GOST R 55601-2013 Heat exchanger apparatuses and air cooling apparatuses Tube expanding in tube-sheets General technical requirements《热交换装置和空气冷却装置 管板胀管 通用技术要求》.pdf GOST R 55601-2013 Heat exchanger apparatuses and air cooling apparatuses Tube expanding in tube-sheets General technical requirements《热交换装置和空气冷却装置 管板胀管 通用技术要求》.pdf
  • GOST R 55602-2013 Switching devices for railway traction network and power substations earthing General specifications《铁路牵引网和变电站接地开关设备 通用规范》.pdf GOST R 55602-2013 Switching devices for railway traction network and power substations earthing General specifications《铁路牵引网和变电站接地开关设备 通用规范》.pdf
  • GOST R 55603-2013 Heat recovery steam generators of combined cycle plants Types and basic parameters《复合循环发电厂的热回收蒸汽发生器 类型和基准参数》.pdf GOST R 55603-2013 Heat recovery steam generators of combined cycle plants Types and basic parameters《复合循环发电厂的热回收蒸汽发生器 类型和基准参数》.pdf
  • GOST R 55604-2013 Switching surges from protective systems Switching surges protection devices of coal mines underground electrical networks Specifications and test methods《保护系统开关冲.pdf GOST R 55604-2013 Switching surges from protective systems Switching surges protection devices of coal mines underground electrical networks Specifications and test methods《保护系统开关冲.pdf
  • GOST R 55605-2013 Design and installation of electrical installations of coal mines and underground workings《煤矿和井下工程的电气装置的设计和安装》.pdf GOST R 55605-2013 Design and installation of electrical installations of coal mines and underground workings《煤矿和井下工程的电气装置的设计和安装》.pdf
  • GOST R 55606-2013 High-voltage plug couplers (electrical connectors) for quarry electrical equipment and power grids General specifications《采石场电气设备和电网用高压耦合插头(电连接器) 通用规范》.pdf GOST R 55606-2013 High-voltage plug couplers (electrical connectors) for quarry electrical equipment and power grids General specifications《采石场电气设备和电网用高压耦合插头(电连接器) 通用规范》.pdf
  • 相关搜索

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

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