[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc

上传人:bonesoil321 文档编号:495601 上传时间:2018-11-28 格式:DOC 页数:5 大小:162KB
下载 相关 举报
[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc_第1页
第1页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc_第2页
第2页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc_第3页
第3页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc_第4页
第4页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷100及答案与解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

国家三级(网络技术)机试模拟试卷 100及答案与解析 一、程序设计题 1 国家三级(网络技术)机试模拟试卷 100答案与解析 一、程序设计题 1 【正确答案】 【试题解析】 定义循环变量 i、表示奇数个数的变量 odd并设置其值为 0。 采用 for循环语句,对数组 xx中每个数组元素 xxi对 2求余数,如果余数为1,则说明数组元素 xxi的值为奇数,则变量 odd的值加 1,并把数组元素 xxi的值累加到变 量 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。

展开阅读全文
相关资源
猜你喜欢
  • ASTM C31 C31M-2015ae1 Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场混凝土试样的制备和养护标准实施规程》.pdf ASTM C31 C31M-2015ae1 Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场混凝土试样的制备和养护标准实施规程》.pdf
  • ASTM C31 C31M-2017 Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场混凝土试样制备和养护的标准实施规程》.pdf ASTM C31 C31M-2017 Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场混凝土试样制备和养护的标准实施规程》.pdf
  • ASTM C31 C31M-2018 Standard Practice for Making and Curing Concrete Test Specimens in the Field.pdf ASTM C31 C31M-2018 Standard Practice for Making and Curing Concrete Test Specimens in the Field.pdf
  • ASTM C31 C31M-2018a Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场制作和养护混凝土试样的标准实施规程》.pdf ASTM C31 C31M-2018a Standard Practice for Making and Curing Concrete Test Specimens in the Field《现场制作和养护混凝土试样的标准实施规程》.pdf
  • ASTM C31 C31M-2018b Standard Practice for Making and Curing Concrete Test Specimens in the Field.pdf ASTM C31 C31M-2018b Standard Practice for Making and Curing Concrete Test Specimens in the Field.pdf
  • ASTM C311 C311M-2013 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete 《硅酸盐水泥混凝土中使用的飞灰或天然火山灰抽样和试验的标准试验方法》.pdf ASTM C311 C311M-2013 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete 《硅酸盐水泥混凝土中使用的飞灰或天然火山灰抽样和试验的标准试验方法》.pdf
  • ASTM C311 C311M-2016 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《取样及测试硅酸盐水泥混凝土用粉煤灰或天然火山灰的标准试验方法》.pdf ASTM C311 C311M-2016 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《取样及测试硅酸盐水泥混凝土用粉煤灰或天然火山灰的标准试验方法》.pdf
  • ASTM C311 C311M-2017 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《取样及测试硅酸盐水泥混凝土用粉煤灰或天然火山灰的标准试验方法》.pdf ASTM C311 C311M-2017 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《取样及测试硅酸盐水泥混凝土用粉煤灰或天然火山灰的标准试验方法》.pdf
  • ASTM C311-2005 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《硅酸盐水泥混凝土中使用的飞灰或天然火山灰的取样和试验用标准试验方法》.pdf ASTM C311-2005 Standard Test Methods for Sampling and Testing Fly Ash or Natural Pozzolans for Use in Portland-Cement Concrete《硅酸盐水泥混凝土中使用的飞灰或天然火山灰的取样和试验用标准试验方法》.pdf
  • 相关搜索

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

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