【计算机类职业资格】国家三级(网络技术)机试-试卷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。

展开阅读全文
相关资源
猜你喜欢
  • NBN T 21-303-1982 1875 General methods of test for pigments and extenders - Determination of pH value of an aqueous suspension《颜料和添加剂的一般试验方法 水悬浮液pH值的测定》.pdf NBN T 21-303-1982 1875 General methods of test for pigments and extenders - Determination of pH value of an aqueous suspension《颜料和添加剂的一般试验方法 水悬浮液pH值的测定》.pdf
  • NBN T 21-304-1982 6250 General methods of test for pigments and extenders - Determination of resistivity of aqueous extract《颜料和添加剂的一般试验方法 水提出物电阻率的测定》.pdf NBN T 21-304-1982 6250 General methods of test for pigments and extenders - Determination of resistivity of aqueous extract《颜料和添加剂的一般试验方法 水提出物电阻率的测定》.pdf
  • NBN T 21-305-1984 1875 General methods of test for pigments and extenders - Determination of residue on sieve - Mechanical flushing method《颜料和添加剂的一般试验方法 筛余物的测定 机械水力充填开采法》.pdf NBN T 21-305-1984 1875 General methods of test for pigments and extenders - Determination of residue on sieve - Mechanical flushing method《颜料和添加剂的一般试验方法 筛余物的测定 机械水力充填开采法》.pdf
  • NBN T 21-306-1984 5000 General methods of test for pigments and extenders - Dermination of relative tinting strength of coloured pigments and relative scattering power of white pig.pdf NBN T 21-306-1984 5000 General methods of test for pigments and extenders - Dermination of relative tinting strength of coloured pigments and relative scattering power of white pig.pdf
  • NBN T 22-001-1984 8125 Paints and varnishes - Sampling《油漆和清漆 取样》.pdf NBN T 22-001-1984 8125 Paints and varnishes - Sampling《油漆和清漆 取样》.pdf
  • NBN T 22-002-1984 3750 Paints and varnishes - Examination and preparation of samples for testing《油漆和清漆,试验用样品的检查和配备》.pdf NBN T 22-002-1984 3750 Paints and varnishes - Examination and preparation of samples for testing《油漆和清漆,试验用样品的检查和配备》.pdf
  • NBN T 22-003-1984 2500 Paints - Classification of paints varnishes and associated products《油漆 油漆,清漆和联合产品的分类》.pdf NBN T 22-003-1984 2500 Paints - Classification of paints varnishes and associated products《油漆 油漆,清漆和联合产品的分类》.pdf
  • NBN T 22-111-1984 6875 Faints and varnishes - Determination of resistance to liquids《油漆和清漆 抗液体性质的测定》.pdf NBN T 22-111-1984 6875 Faints and varnishes - Determination of resistance to liquids《油漆和清漆 抗液体性质的测定》.pdf
  • NBN T 22-112-1984 5625 Paints and varnisches - Determination of viscosity at a high rate of shear《油漆和清漆 在高速剪切率下粘性的测定》.pdf NBN T 22-112-1984 5625 Paints and varnisches - Determination of viscosity at a high rate of shear《油漆和清漆 在高速剪切率下粘性的测定》.pdf
  • 相关搜索

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

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