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

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

国家三级(网络技术)机试模拟试卷 147及答案与解析 一、程序设计题 1 国家三级(网络技术)机试模拟试卷 147答案与解析 一、程序设计题 1 【正确答案】 【试题解析】 首先定义循环变量 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即可得到这些数的平均值 )。

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 4199-003-2012 Aerospace series Bonding straps for aircraft Part 003 Bonding strap assemblies with flat braided conductor copper tin plated - 65 up to 150 and copper n.pdf ASD-STAN PREN 4199-003-2012 Aerospace series Bonding straps for aircraft Part 003 Bonding strap assemblies with flat braided conductor copper tin plated - 65 up to 150 and copper n.pdf
  • ASD-STAN PREN 4199-004-2013 Aerospace series Bonding straps for aircraft Part 004 Round bonding straps copper tin plated - 65 up to 150 and nickel plated - 65 up to 260 Product sta.pdf ASD-STAN PREN 4199-004-2013 Aerospace series Bonding straps for aircraft Part 004 Round bonding straps copper tin plated - 65 up to 150 and nickel plated - 65 up to 260 Product sta.pdf
  • ASD-STAN PREN 4199-005-2007 Aerospace Series Bonding Straps for Aircarft Part 005 Flat Braid Conductors Copper Tin Plated -65 Degrees Celsius up to 150 Degrees Celsius and Copper N.pdf ASD-STAN PREN 4199-005-2007 Aerospace Series Bonding Straps for Aircarft Part 005 Flat Braid Conductors Copper Tin Plated -65 Degrees Celsius up to 150 Degrees Celsius and Copper N.pdf
  • ASD-STAN PREN 4199-006-2004 Aerospace Series Bonding Straps for Aircraft Part 006 Round Braid Copper Conductors for Bonding straps Tin Plated up to 150 Degrees C or Nickel Plated u.pdf ASD-STAN PREN 4199-006-2004 Aerospace Series Bonding Straps for Aircraft Part 006 Round Braid Copper Conductors for Bonding straps Tin Plated up to 150 Degrees C or Nickel Plated u.pdf
  • ASD-STAN PREN 4202-2003 Aerospace Series Aluminium Alloy AL-P6082-T651 Plate 6 mm Less Than a Less Than or Equal to 25 mm (Edition P 2)《航空航天系列 6mm≤a≤25mm的AL-P6082-T651铝合金厚板材 第P2版》.pdf ASD-STAN PREN 4202-2003 Aerospace Series Aluminium Alloy AL-P6082-T651 Plate 6 mm Less Than a Less Than or Equal to 25 mm (Edition P 2)《航空航天系列 6mm≤a≤25mm的AL-P6082-T651铝合金厚板材 第P2版》.pdf
  • ASD-STAN PREN 4203-2003 Aerospace Series Aluminium Alloy AL-P8090-T89 Sheet 0 6 mm Less Than or Equal to a Less Than or Equal to 6 mm (Edition P 1)《航空航天系列 铝合金AL-P8090-T89制0 6mm≤a≤6.pdf ASD-STAN PREN 4203-2003 Aerospace Series Aluminium Alloy AL-P8090-T89 Sheet 0 6 mm Less Than or Equal to a Less Than or Equal to 6 mm (Edition P 1)《航空航天系列 铝合金AL-P8090-T89制0 6mm≤a≤6.pdf
  • ASD-STAN PREN 4204-2003 Aerospace Series Aluminium Alloy AL-P8090-T841 Sheet 0 6mm Less Than or Equal to a Less Than or Equal to 6mm (Edition P 2)《航空航天系列 0 6mm≤a≤6mm的铝合金AL-P8090-T8.pdf ASD-STAN PREN 4204-2003 Aerospace Series Aluminium Alloy AL-P8090-T841 Sheet 0 6mm Less Than or Equal to a Less Than or Equal to 6mm (Edition P 2)《航空航天系列 0 6mm≤a≤6mm的铝合金AL-P8090-T8.pdf
  • ASD-STAN PREN 4207-1999 Aerospace Series Aluminium Alloy AL-P8090-T89 Extruded Bar and Section a or D Less Than or Equal to 15mm with Peripheral Coarse Grain Control (Edition P 1)《.pdf ASD-STAN PREN 4207-1999 Aerospace Series Aluminium Alloy AL-P8090-T89 Extruded Bar and Section a or D Less Than or Equal to 15mm with Peripheral Coarse Grain Control (Edition P 1)《.pdf
  • ASD-STAN PREN 4209-2003 Aerospace Series Aluminium Alloy AL-P2219-T851 Plate 6 mm less than a Less Than or Equal to 50 mm (Edition P 2)《航空航天系列 6mm≤a≤50mm的AL-P2219-T851铝合金厚板材 第P2版》.pdf ASD-STAN PREN 4209-2003 Aerospace Series Aluminium Alloy AL-P2219-T851 Plate 6 mm less than a Less Than or Equal to 50 mm (Edition P 2)《航空航天系列 6mm≤a≤50mm的AL-P2219-T851铝合金厚板材 第P2版》.pdf
  • 相关搜索

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

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