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

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

国家三级(网络技术)机试-试卷 102 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 102 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义一个循环变量循环 i 和用于正负号转换的变量j,同时赋 j 的初值为-1。 通过 for 循环对 800 到 500 的每个数字进行逐个的扫描,指定循环变量 i 的初值为 800,当 i 值等于 500 停止循环,每执行一次循环,i 的值便减 1。(注意,本题 for 循环从大到小依次读取数据是根据题目要求设计的,这样得到的素数值其排序方式就是从大到小排序。) 在每次执行 for 循环时,都调用素数判断函数 isPrime()判断当前的 i 值是否为素数,如果是素数,则素数计数变量 cnt 值加 1,正负号转换变量 j的值乘以-1,实现正负数的交替转换,最后将每次循环得到的 i*j 的值累加到求和变量 sum 中。

展开阅读全文
相关资源
猜你喜欢
  • SIS SS 424 14 03-1991 Wiring systems for max 1000 V  Methods of calculation to safeguard correct disconnection  Not directly earthed systems protected by circuit-breakers《最高1000伏的导.pdf SIS SS 424 14 03-1991 Wiring systems for max 1000 V Methods of calculation to safeguard correct disconnection Not directly earthed systems protected by circuit-breakers《最高1000伏的导.pdf
  • SIS SS 424 14 05-1988 Wiring systems for max 1000 V and protected by fuses - Methods of calculation to safeguard correct fuse interruption《最高1000伏由保险丝保护的导线系统 保障正确保险丝中断的计算方法》.pdf SIS SS 424 14 05-1988 Wiring systems for max 1000 V and protected by fuses - Methods of calculation to safeguard correct fuse interruption《最高1000伏由保险丝保护的导线系统 保障正确保险丝中断的计算方法》.pdf
  • SIS SS 424 14 07-1990 Power cables  Behaviour under short-circuit conditions《电力电缆 短路情况》.pdf SIS SS 424 14 07-1990 Power cables Behaviour under short-circuit conditions《电力电缆 短路情况》.pdf
  • SIS SS 424 14 08-1991 Power cables and cords -Conductors《电力电缆和电线 导线》.pdf SIS SS 424 14 08-1991 Power cables and cords -Conductors《电力电缆和电线 导线》.pdf
  • SIS SS 424 14 11-1986 Power cables - XLPE-insulated PVC-sheathed 4-conductor cables without concentric conductor type SE-N1XV- Rated voltage 0 6 I kV- Design《电力电缆 交联聚乙烯绝缘,聚氯乙烯护套 无同.pdf SIS SS 424 14 11-1986 Power cables - XLPE-insulated PVC-sheathed 4-conductor cables without concentric conductor type SE-N1XV- Rated voltage 0 6 I kV- Design《电力电缆 交联聚乙烯绝缘,聚氯乙烯护套 无同.pdf
  • SIS SS 424 14 11-1988 Power cables - XLPE-insulated PVC-sheathed 4-conductor cables without concentric conductor type SE-N1XV with rated voltage 0 6  1 kV - Design《电力电缆 交联聚乙烯绝缘,聚氯乙.pdf SIS SS 424 14 11-1988 Power cables - XLPE-insulated PVC-sheathed 4-conductor cables without concentric conductor type SE-N1XV with rated voltage 0 6 1 kV - Design《电力电缆 交联聚乙烯绝缘,聚氯乙.pdf
  • SIS SS 424 14 12-1986 Power cables - XLPE-insulated PVC- or PE-sheathed cables with or without concentric conductor - Rated voltage 0 6 1 kV- Testing《电力电缆 交联聚乙烯绝缘,聚氯乙烯或聚乙烯护套带或不带同心导.pdf SIS SS 424 14 12-1986 Power cables - XLPE-insulated PVC- or PE-sheathed cables with or without concentric conductor - Rated voltage 0 6 1 kV- Testing《电力电缆 交联聚乙烯绝缘,聚氯乙烯或聚乙烯护套带或不带同心导.pdf
  • SIS SS 424 14 13-1984 Power cables  PVC-insulated PVC-sheathed cables with concentric conductor typ AKKJ EKKJ FKKJ - Rated voltage 0 6 1 kV - Design《电力电缆 聚氯乙烯绝缘,聚氯乙烯护套电缆同心导体,AKKJ;E.pdf SIS SS 424 14 13-1984 Power cables PVC-insulated PVC-sheathed cables with concentric conductor typ AKKJ EKKJ FKKJ - Rated voltage 0 6 1 kV - Design《电力电缆 聚氯乙烯绝缘,聚氯乙烯护套电缆同心导体,AKKJ;E.pdf
  • SIS SS 424 14 14-1985 Power cables  PVC-insulated PVC-sheathed cables with concentric conductor typ AKKJ EKKJ FKKJ - Rated voltage 0 6 1 kV - Testing《电力电缆 聚氯乙烯绝缘,聚氯乙烯护套电缆同心导体,AKKJ;.pdf SIS SS 424 14 14-1985 Power cables PVC-insulated PVC-sheathed cables with concentric conductor typ AKKJ EKKJ FKKJ - Rated voltage 0 6 1 kV - Testing《电力电缆 聚氯乙烯绝缘,聚氯乙烯护套电缆同心导体,AKKJ;.pdf
  • 相关搜索

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

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