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

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

国家三级(网络技术)机试-试卷 105 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 105 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义整型变量 i、j 和长整型 he,并把其初始值设置为 0。 用 for 循环语句对数组 xx进行扫描,如果当前数组元素 xxi非零,则全局变量 totNum 加 1。 在 for 循环语句中,循环变量 i从 0 开始递增到 totNum-1,对数组 xx 中的每个元素 xxi右移一位,把这个值赋给整型变量 j,再对 j的值对 2 求余数,如果余数等于 0,则变量 totCnt 加 1,并把数组元素 xxi累加到变量 he。 退出循环时,把变量 he 的数据类型转换成双精度型再除以变量 totCnt 的值,就得到算术平均值 totPjz。

展开阅读全文
相关资源
猜你喜欢
  • DIN 11026-1989 Agricultural tractors and machinery trailer coupling ring 40 with reinforced shaft with socket dimensions《农用机械和拖拉机 带加强销、轴套的挂斗匹配环40 尺寸》.pdf DIN 11026-1989 Agricultural tractors and machinery trailer coupling ring 40 with reinforced shaft with socket dimensions《农用机械和拖拉机 带加强销、轴套的挂斗匹配环40 尺寸》.pdf
  • DIN 11027-1999 Agricultural machinery - Removable lights and warning boards - Clearance fastening and shape《农业机械 可拆卸照明装置和警报盘 间隙、紧固和形状》.pdf DIN 11027-1999 Agricultural machinery - Removable lights and warning boards - Clearance fastening and shape《农业机械 可拆卸照明装置和警报盘 间隙、紧固和形状》.pdf
  • DIN 11028-1999 Agricultural tractors and machinery - Trailer coupling - Bolt coupling for coupling-ring 40《农业用拖拉机和机械  拖车联轴节 40联接环用螺栓联轴节》.pdf DIN 11028-1999 Agricultural tractors and machinery - Trailer coupling - Bolt coupling for coupling-ring 40《农业用拖拉机和机械 拖车联轴节 40联接环用螺栓联轴节》.pdf
  • DIN 11030-1994 Agricultural machinery and tractors - Marking of mounted and towed machines or implements《农业机械和农用拖拉机 固定式和牵引式农机或农具的标记》.pdf DIN 11030-1994 Agricultural machinery and tractors - Marking of mounted and towed machines or implements《农业机械和农用拖拉机 固定式和牵引式农机或农具的标记》.pdf
  • DIN 11032-1977 Agricultural tractors and machinery changeable hand brake levers dimensions《农用拖拉机和机械 可更换的手动制动控制杆 尺寸》.pdf DIN 11032-1977 Agricultural tractors and machinery changeable hand brake levers dimensions《农用拖拉机和机械 可更换的手动制动控制杆 尺寸》.pdf
  • DIN 11040-1989 Agricultural machinery terms and definitions for implements and procedures《农业机械 农具及使用程序的术语和定义》.pdf DIN 11040-1989 Agricultural machinery terms and definitions for implements and procedures《农业机械 农具及使用程序的术语和定义》.pdf
  • DIN 11042-1-1978 Maintenance manual terms symbols《维修手册 第1部分 术语、符号》.pdf DIN 11042-1-1978 Maintenance manual terms symbols《维修手册 第1部分 术语、符号》.pdf
  • DIN 11043-1989 Agricultural tractors and machinery 40 mm trailer coupling ring with socket for trailers with articulated drawbar dimensions《农用拖拉机和机械 铰接牵引杆拖挂车用的40mm耦合环 尺寸》.pdf DIN 11043-1989 Agricultural tractors and machinery 40 mm trailer coupling ring with socket for trailers with articulated drawbar dimensions《农用拖拉机和机械 铰接牵引杆拖挂车用的40mm耦合环 尺寸》.pdf
  • DIN 11050-1977 Agricultural machinery horse-drawn ploughs terms《农用机械 牲畜拉犁 术语》.pdf DIN 11050-1977 Agricultural machinery horse-drawn ploughs terms《农用机械 牲畜拉犁 术语》.pdf
  • 相关搜索

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

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