【计算机类职业资格】国家三级(网络技术)机试-试卷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 即可得到这些数的平均值)。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 15703-2-2015 Copper and copper alloys - Determination of manganese content - Part 2 Flame atomic absorption spectrometric method (FAAS) German version EN 15703-2 2014《铜和铜合金 .pdf DIN EN 15703-2-2015 Copper and copper alloys - Determination of manganese content - Part 2 Flame atomic absorption spectrometric method (FAAS) German version EN 15703-2 2014《铜和铜合金 .pdf
  • DIN EN 15704-2009 Liming materials - Determination of the breakdown of granulated calcium and calcium magnesium carbonates under the influence of water English version of DIN EN 15.pdf DIN EN 15704-2009 Liming materials - Determination of the breakdown of granulated calcium and calcium magnesium carbonates under the influence of water English version of DIN EN 15.pdf
  • DIN EN 15705-2010 Fertilizers - Determination of urea condensates using high-performance liquid chromatography (HPLC) - Isobutylidenediurea and crotonylidenediurea (method A) and m.pdf DIN EN 15705-2010 Fertilizers - Determination of urea condensates using high-performance liquid chromatography (HPLC) - Isobutylidenediurea and crotonylidenediurea (method A) and m.pdf
  • DIN EN 15706-2009 Hardware for furniture - Strength and durability of slide fittings for sliding doors and roll fronts English version of DIN EN 15706 2009-08《家具五金 滑动门和滚动前门的强度和耐久性》.pdf DIN EN 15706-2009 Hardware for furniture - Strength and durability of slide fittings for sliding doors and roll fronts English version of DIN EN 15706 2009-08《家具五金 滑动门和滚动前门的强度和耐久性》.pdf
  • DIN EN 15707-2009 Print media surveys - Vocabulary and service requirements English version of DIN EN 15707 2009-01《印刷介质调查 词汇和服务要求》.pdf DIN EN 15707-2009 Print media surveys - Vocabulary and service requirements English version of DIN EN 15707 2009-01《印刷介质调查 词汇和服务要求》.pdf
  • DIN EN 15708-2010 Water quality - Guidance standard for the surveying sampling and laboratory analysis of phytobenthos in shallow running water German version EN 15708 2009《水质 浅活水中.pdf DIN EN 15708-2010 Water quality - Guidance standard for the surveying sampling and laboratory analysis of phytobenthos in shallow running water German version EN 15708 2009《水质 浅活水中.pdf
  • DIN EN 15713-2009 Secure destruction of confidential material - Code of practice English version of DIN EN 15713 2009-08《保密材料的安全销 操作守则 DIN EN 15713-2009-08的英文版本》.pdf DIN EN 15713-2009 Secure destruction of confidential material - Code of practice English version of DIN EN 15713 2009-08《保密材料的安全销 操作守则 DIN EN 15713-2009-08的英文版本》.pdf
  • DIN EN 15714-1-2010 Industrial valves - Actuators - Part 1 Terminology and definitions German version EN 15714-1 2009《工业阀门 制动器 第1部分 术语和定义 德文版本EN 15714-1-2009》.pdf DIN EN 15714-1-2010 Industrial valves - Actuators - Part 1 Terminology and definitions German version EN 15714-1 2009《工业阀门 制动器 第1部分 术语和定义 德文版本EN 15714-1-2009》.pdf
  • DIN EN 15714-2-2010 Industrial valves - Actuators - Part 2 Electric actuators for industrial valves - Basic requirements German version EN 15714-2 2009《工业阀门 制动器 第4部分 工业阀门用液压件部分回转制动.pdf DIN EN 15714-2-2010 Industrial valves - Actuators - Part 2 Electric actuators for industrial valves - Basic requirements German version EN 15714-2 2009《工业阀门 制动器 第4部分 工业阀门用液压件部分回转制动.pdf
  • 相关搜索

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

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