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

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

国家三级(网络技术)机试-试卷 19 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 19 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义循环变量 i,然后通过 for 循环对数组 a300中的每个元素 ai调用函数isP(ai)判断 ai是否是素数(素数的算法已在 isP()函数中给出,此处直接调用即可),如果 是素数,则把其加到变量 pjz1 上,同时计数变量 cnt 加 1,否则 ai值加到变量 pjz2 上。直到判断完数组 a300中的所有数据后退出循环。 求出 pjz1、pjz2 和 cnt 的值之后,再用变量 pjz1 的值除以 cnt 的值就得到素数的平均值,同时把这个值赋给变量 pjz1,最后用变量 pjz2 的值除以 300-cnt 的值就得到非素数的平均值,并把这个值赋给变量 pjz2。

展开阅读全文
相关资源
猜你喜欢
  • BS EN 14662-1-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Pumped sampling followed by thermal desorption and gas chromatography《环境空气质量 测量.pdf BS EN 14662-1-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Pumped sampling followed by thermal desorption and gas chromatography《环境空气质量 测量.pdf
  • BS EN 14662-2-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Pumped sampling followed by solvent desorption and gas chromatography《环境空气质量 苯浓.pdf BS EN 14662-2-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Pumped sampling followed by solvent desorption and gas chromatography《环境空气质量 苯浓.pdf
  • BS EN 14662-3-2015 Ambient air Standard method for the measurement of benzene concentrations Automated pumped sampling with in situ gas chromatography《环境空气 测量苯浓度的标准方法 自动泵取样和现场气相色谱法.pdf BS EN 14662-3-2015 Ambient air Standard method for the measurement of benzene concentrations Automated pumped sampling with in situ gas chromatography《环境空气 测量苯浓度的标准方法 自动泵取样和现场气相色谱法.pdf
  • BS EN 14662-4-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Diffusive sampling followed by thermal desorption and gas chromatography《环境空气质量.pdf BS EN 14662-4-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Diffusive sampling followed by thermal desorption and gas chromatography《环境空气质量.pdf
  • BS EN 14662-5-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Diffusive sampling followed by solvent desorption and gas chromatography《环境空气质量.pdf BS EN 14662-5-2005 Ambient air quality - Standard method for measurement of benzene concentrations - Diffusive sampling followed by solvent desorption and gas chromatography《环境空气质量.pdf
  • BS EN 14663-2005 Foodstuffs - Determination of vitamin B6 (including its glycosylated forms) by HPLC《食品 用高效液相色谱法(HPLC)测定维他命B6(包括其糖基化形式)》.pdf BS EN 14663-2005 Foodstuffs - Determination of vitamin B6 (including its glycosylated forms) by HPLC《食品 用高效液相色谱法(HPLC)测定维他命B6(包括其糖基化形式)》.pdf
  • BS EN 14664-2004 Chemicals used for treatment of water intended for human consumption - Iron (III) sulfate solid《人类生活用水处理用化学制剂 固态硫酸铁(III)》.pdf BS EN 14664-2004 Chemicals used for treatment of water intended for human consumption - Iron (III) sulfate solid《人类生活用水处理用化学制剂 固态硫酸铁(III)》.pdf
  • BS EN 14666-2005 Surface active agents - Determination of tetraacetyl ethylene diamine (TAED) content in TAED granules - Gas chromatographic method《表面活性剂 测定TAED颗粒中四乙酰乙二胺(TAED)含量 气相.pdf BS EN 14666-2005 Surface active agents - Determination of tetraacetyl ethylene diamine (TAED) content in TAED granules - Gas chromatographic method《表面活性剂 测定TAED颗粒中四乙酰乙二胺(TAED)含量 气相.pdf
  • BS EN 14667-2005 Surface active agents - Determination of low boiling solvents in liquid formulations - Gas chromatographic method《表面活性剂 测定液体成分中的低沸点溶剂 气相色谱法》.pdf BS EN 14667-2005 Surface active agents - Determination of low boiling solvents in liquid formulations - Gas chromatographic method《表面活性剂 测定液体成分中的低沸点溶剂 气相色谱法》.pdf
  • 相关搜索

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

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