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

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

1、国家三级(网络技术)机试-试卷 67 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 67 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义循环变量 i、表示奇数个数的变量 odd 并设置其值为 0。 采用 for 循环语句,对数组 xx 中每个数组元素 xxi对 2 求余数,如果余数为 1,则说明数组元素 xxi的值为奇数,则变量 odd的值加 1,并把数组元素 xxi的值累加到

2、变 量 avel,否则,说明数组元数 xxi的值为偶数,则变量even 的值加 1,并把数组元素 xxi的值累加到变量 ave2。 退出 for 循环语句后,用变量 avel 除以奇数的个数 odd,得到所有奇数的平均值赋给 avel,用变量 ave2 除以偶数的个数 even,得到所有偶数的平均值赋给 ave2。 利用 for 循环语句,对数组 xx 中每个数组元素 xxi对 2 求余数,如果余数等于 0,则说明数组元素 xxi的值为偶数,这时把表达式 xxi-ave2 的平方值累加到变量 totfc。退出循环后,用变量 totfc 的值除以偶数的个数 even,得到所有偶数的方差赋给变量 totfc。

展开阅读全文
相关资源
猜你喜欢
  • BS PD ISO TR 9686-2017 Direct reduced iron Determination of carbon and or sulfur High-frequency combustion method with infrared measurement《直接还原铁 碳和 或硫的测定 高频燃烧红外线吸收法》.pdf BS PD ISO TR 9686-2017 Direct reduced iron Determination of carbon and or sulfur High-frequency combustion method with infrared measurement《直接还原铁 碳和 或硫的测定 高频燃烧红外线吸收法》.pdf
  • BS PD ISO TS 10719-2016 Cast irons Determination of non-combined carbon content Infrared absorption method after combustion in an induction furnace《铸铁 非化合碳含量的测定 感应炉燃烧后的红外吸收法》.pdf BS PD ISO TS 10719-2016 Cast irons Determination of non-combined carbon content Infrared absorption method after combustion in an induction furnace《铸铁 非化合碳含量的测定 感应炉燃烧后的红外吸收法》.pdf
  • BS PD ISO TS 11405-2015 Dentistry Testing of adhesion to tooth structure《牙科学 牙体组织的附着力试验》.pdf BS PD ISO TS 11405-2015 Dentistry Testing of adhesion to tooth structure《牙科学 牙体组织的附着力试验》.pdf
  • BS PD ISO TS 11619-2014 Polyurethane tubing for use primarily in pneumatic installations Dimensions and specification《气动装置中主要使用的聚氨酯管 尺寸和规范》.pdf BS PD ISO TS 11619-2014 Polyurethane tubing for use primarily in pneumatic installations Dimensions and specification《气动装置中主要使用的聚氨酯管 尺寸和规范》.pdf
  • BS PD ISO TS 11672-2016 Connectors for fluid power and general use Designation and nomenclature《液压动力用连接器和一般用途 名称和命名》.pdf BS PD ISO TS 11672-2016 Connectors for fluid power and general use Designation and nomenclature《液压动力用连接器和一般用途 名称和命名》.pdf
  • BS PD ISO TS 11819-3-2017 Acoustics Measurement of the influence of road surfaces on traffic noise Reference tyres《声学 路面对交通噪声的影响测量 标准轮胎》.pdf BS PD ISO TS 11819-3-2017 Acoustics Measurement of the influence of road surfaces on traffic noise Reference tyres《声学 路面对交通噪声的影响测量 标准轮胎》.pdf
  • BS PD ISO TS 12720-2014 Sustainability in buildings and civil engineering works Guidelines on the application of the general principles in ISO 15392《建筑物和土木工程的可持续性 ISO 15392中的一般原则应用指南》.pdf BS PD ISO TS 12720-2014 Sustainability in buildings and civil engineering works Guidelines on the application of the general principles in ISO 15392《建筑物和土木工程的可持续性 ISO 15392中的一般原则应用指南》.pdf
  • BS PD ISO TS 12812-2-2017 Core banking Mobile financial services Security and data protection for mobile financial services《核心银行系统 移动金融服务 移动金融服务的安全和数据保护》.pdf BS PD ISO TS 12812-2-2017 Core banking Mobile financial services Security and data protection for mobile financial services《核心银行系统 移动金融服务 移动金融服务的安全和数据保护》.pdf
  • BS PD ISO TS 12812-3-2017 Core banking Mobile financial services Financial application lifecycle management《核心银行系统 移动金融服务 金融应用生命周期管理》.pdf BS PD ISO TS 12812-3-2017 Core banking Mobile financial services Financial application lifecycle management《核心银行系统 移动金融服务 金融应用生命周期管理》.pdf
  • 相关搜索

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

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