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

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

国家三级(网络技术)机试-试卷 52 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 52 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义循环变量 i,并对全局变量 cnt1、cnt2 和 pj 赋初值 0。 在 for 循环语句中,将数组 xx 中的每个数组元素 xxi对 2 求余数,如果余数非零,则说明 xxi是奇数,奇数的个数变量cnt1 加 1,否则,偶数的计数变量 cnt2 加 1;接着将数组 xx 下标 i 对 2 求余,如果余数等于 0,则把xxi的值累加到变量 pj。 退出循环时,变量 pj 的值除以 100.0 就得到数组 xx 下标 i 为偶数的元素值的算术平均值 pj(因为数组中共有 200 个数组,下标为奇偶数的元素各占一半,因此直接将累加变量 pj的值直接除 100 即可得到这些数的平均值)。

展开阅读全文
相关资源
猜你喜欢
  • ASTM A798 A798M-2013 Standard Practice for Installing Factory-Made Corrugated Steel Pipe for Sewers and Other Applications《污水管及其它类似用途用工厂制波纹钢管安装的标准实施规程》.pdf ASTM A798 A798M-2013 Standard Practice for Installing Factory-Made Corrugated Steel Pipe for Sewers and Other Applications《污水管及其它类似用途用工厂制波纹钢管安装的标准实施规程》.pdf
  • ASTM A798 A798M-2017 Standard Practice for Installing Factory-Made Corrugated Steel Pipe for Sewers and Other Applications《下水道及其它类似用途用工厂制钢波纹管安装的标准实施规程》.pdf ASTM A798 A798M-2017 Standard Practice for Installing Factory-Made Corrugated Steel Pipe for Sewers and Other Applications《下水道及其它类似用途用工厂制钢波纹管安装的标准实施规程》.pdf
  • ASTM A799 A799M-2004 Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content.pdf ASTM A799 A799M-2004 Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content.pdf
  • ASTM A799 A799M-2004(2009) Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content.pdf ASTM A799 A799M-2004(2009) Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content.pdf
  • ASTM A799 A799M-2010 Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content《估算铁素体含量用仪器校准不锈钢铸件标准规程》.pdf ASTM A799 A799M-2010 Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content《估算铁素体含量用仪器校准不锈钢铸件标准规程》.pdf
  • ASTM A799 A799M-2010(2015) Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content《用户评估铁素体含量的钢铸件 不锈钢和仪表校准的标准实施规程》.pdf ASTM A799 A799M-2010(2015) Standard Practice for Steel Castings Stainless Instrument Calibration for Estimating Ferrite Content《用户评估铁素体含量的钢铸件 不锈钢和仪表校准的标准实施规程》.pdf
  • ASTM A800 A800M-2001(2006) Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《奥氏体合金钢铸件中铁素体含量估算的标准实施规程》.pdf ASTM A800 A800M-2001(2006) Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《奥氏体合金钢铸件中铁素体含量估算的标准实施规程》.pdf
  • ASTM A800 A800M-2010 Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《奥氏体合金钢铸件中铁素体含量估算的标准实施规程》.pdf ASTM A800 A800M-2010 Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《奥氏体合金钢铸件中铁素体含量估算的标准实施规程》.pdf
  • ASTM A800 A800M-2014 Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《铸钢 奥氏体合金 估算其铁素体含量的标准实施规程》.pdf ASTM A800 A800M-2014 Standard Practice for Steel Casting Austenitic Alloy Estimating Ferrite Content Thereof《铸钢 奥氏体合金 估算其铁素体含量的标准实施规程》.pdf
  • 相关搜索

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

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