【计算机类职业资格】三级信息管理技术机试-124及答案解析.doc

上传人:王申宇 文档编号:1320616 上传时间:2019-10-17 格式:DOC 页数:2 大小:29.50KB
下载 相关 举报
【计算机类职业资格】三级信息管理技术机试-124及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】三级信息管理技术机试-124及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

三级信息管理技术机试-124 及答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.试题要求如图 10.6 所示。(分数:100.00)_三级信息管理技术机试-124 答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.试题要求如图 10.6 所示。(分数:100.00)_正确答案:(void CaiValue(void)int i, x;for(i=0; iMAXNUM; i+)if(xxi0)totNum+;x=xxi1;if(x%2!=0)totCnt+;totPjz=totPjz+xxi;totPjz=totPjz/totCnt;)解析:解析 此题中要用到对一个数右移一位二进制位,在 C 语言中,运算符就可以完成此功能,它是把 xxi转换成二进制数后,向右移一位舍掉一个二进制位,再把该二进行制位化成十进制位。注意,题目要求是记录右移后的数为奇数的个数,因此 if 条件要用右移得到的数进行判断。totPjz 是要计算右移前的数的算数平均值,因此要对进行累加。

展开阅读全文
相关资源
猜你喜欢
  • IEEE 1722-2011 en Layer 2 Transport Protocol for Time-Sensitive Applications in Bridged Local Area Networks (IEEE Computer Society)《桥接局域网内时间敏感应用层2传输协议标准》.pdf IEEE 1722-2011 en Layer 2 Transport Protocol for Time-Sensitive Applications in Bridged Local Area Networks (IEEE Computer Society)《桥接局域网内时间敏感应用层2传输协议标准》.pdf
  • IEEE 1722-2016 en A Transport Protocol for Time-Sensitive Applications in Bridged Local Area Networks (IEEE Computer Society)《桥接局域网内时间敏感应用传输协议标准》.pdf IEEE 1722-2016 en A Transport Protocol for Time-Sensitive Applications in Bridged Local Area Networks (IEEE Computer Society)《桥接局域网内时间敏感应用传输协议标准》.pdf
  • IEEE 1724-2011 en Guide for the Preparation of a Transmission Line Design Criteria Document《输电线路设计准则文件的准备指南》.pdf IEEE 1724-2011 en Guide for the Preparation of a Transmission Line Design Criteria Document《输电线路设计准则文件的准备指南》.pdf
  • IEEE 1725-2011 3578 Rechargeable Batteries for Cellular Telephones《移动电话用可再充电电池》.pdf IEEE 1725-2011 3578 Rechargeable Batteries for Cellular Telephones《移动电话用可再充电电池》.pdf
  • IEEE 1726-2013 en Functional Specification of Fixed-Series Capacitor Banks for Transmission System Applications《用于传输系统应用的固定串联电容器的功能规范 n》.pdf IEEE 1726-2013 en Functional Specification of Fixed-Series Capacitor Banks for Transmission System Applications《用于传输系统应用的固定串联电容器的功能规范 n》.pdf
  • IEEE 1727 CORR-2015 en Guide for Working Procedures on Underground Transmission Circuits with Induced Voltage Corrigendum 1《带感应电压的地下传输电路工作规程用IEEE指南 勘误1》.pdf IEEE 1727 CORR-2015 en Guide for Working Procedures on Underground Transmission Circuits with Induced Voltage Corrigendum 1《带感应电压的地下传输电路工作规程用IEEE指南 勘误1》.pdf
  • IEEE 1727-2013 en Guide for Working Procedures on Underground Transmission Circuits with Induced Voltage《带感应电压的地下传输电路工作规程用IEEE指南》.pdf IEEE 1727-2013 en Guide for Working Procedures on Underground Transmission Circuits with Induced Voltage《带感应电压的地下传输电路工作规程用IEEE指南》.pdf
  • IEEE 1729-2014 en Recommended Practice for Electric Power Distribution System Analysis《电力配电系统分析用推荐性操作规范》.pdf IEEE 1729-2014 en Recommended Practice for Electric Power Distribution System Analysis《电力配电系统分析用推荐性操作规范》.pdf
  • IEEE 1730 1-2013 en Recommended Practice for Distributed Simulation Engineering and Execution Process Multi-Architecture Overlay (DMAO) (IEEE Computer Society)《.pdf IEEE 1730 1-2013 en Recommended Practice for Distributed Simulation Engineering and Execution Process Multi-Architecture Overlay (DMAO) (IEEE Computer Society)《.pdf
  • 相关搜索

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

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