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

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

国家三级(网络技术)机试模拟试卷 173及答案与解析 一、程序设计题 1 国家三级(网络技术)机试模拟试卷 173答案与解析 一、程序设计题 1 【正确答案】 【试题解析】 首先定义两个循环变量循环 i、 j和一个用于数据交换的整型变量tmp。 通过 for循环依次读取数组中的 300个数,其中,循环变量 i从 0开始每次加1,直到 i 300停止循环;在每次循环中判断 ai是否是素数,如果是素数,则把ai的值赋给数组 bcnt,同时数组下标变量 cnt值加 1。 在退出循环后,用两个 for循环对数组 b中元素进行两两比较,实现数组元素从小到大的排序,比较过程中通过整型变量 tmp实现两个数的交换。

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 2098-3-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 3 - Inspection and Testing Requirements f.pdf ASD-STAN PREN 2098-3-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 3 - Inspection and Testing Requirements f.pdf
  • ASD-STAN PREN 2098-4-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 4 - Inspection and Testing Requirements f.pdf ASD-STAN PREN 2098-4-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 4 - Inspection and Testing Requirements f.pdf
  • ASD-STAN PREN 2098-5-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 5 - Inspection and Testing Requirements f.pdf ASD-STAN PREN 2098-5-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 5 - Inspection and Testing Requirements f.pdf
  • ASD-STAN PREN 2098-6-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 6 - Inspection and Testing Requirements f.pdf ASD-STAN PREN 2098-6-1994 Aerospace Series Inspection and Testing Requirements for Titanium and Heat Resisting Alloy Wrought Products Part 6 - Inspection and Testing Requirements f.pdf
  • ASD-STAN PREN 2100-1980 Aluminium Alloy 2014A- T451 - Bars and Sections a Less Than or Equal to 200 mm Aerospace Series (Edition 1)《航空航天系列 a≤200mm的铝合金2014A-T451棒材和型材 第1版》.pdf ASD-STAN PREN 2100-1980 Aluminium Alloy 2014A- T451 - Bars and Sections a Less Than or Equal to 200 mm Aerospace Series (Edition 1)《航空航天系列 a≤200mm的铝合金2014A-T451棒材和型材 第1版》.pdf
  • ASD-STAN PREN 2103-1988 Steel Nickel Base and Cobolt Base Alloy Remelting Stock and Castings - Technical Specification - Part 1 - General Requirements《钢镍基和钴基合金再熔坯料和铸件 技术规范 第1部分 一般要.pdf ASD-STAN PREN 2103-1988 Steel Nickel Base and Cobolt Base Alloy Remelting Stock and Castings - Technical Specification - Part 1 - General Requirements《钢镍基和钴基合金再熔坯料和铸件 技术规范 第1部分 一般要.pdf
  • ASD-STAN PREN 2103-2-1988 Aerospace Series Steel Nickel Base and Cobalt Base Alloy Remelting Stock and Castings - Technical Specification - Part 2 - Remelting Stock (Edition 1)《航空航.pdf ASD-STAN PREN 2103-2-1988 Aerospace Series Steel Nickel Base and Cobalt Base Alloy Remelting Stock and Castings - Technical Specification - Part 2 - Remelting Stock (Edition 1)《航空航.pdf
  • ASD-STAN PREN 2103-3-1988 Aerospace Series Steel Nickel Base and Cobalt Base Alloy Remelting Stock and Castings - Technical Specification - Part 3 - Pre-Production and Production C.pdf ASD-STAN PREN 2103-3-1988 Aerospace Series Steel Nickel Base and Cobalt Base Alloy Remelting Stock and Castings - Technical Specification - Part 3 - Pre-Production and Production C.pdf
  • ASD-STAN PREN 2104-1995 Aerospace Series Acrylonitrile-Butadiene Rubber (NBR) Hardness 40 IRHD (Edition 2)《航空航天系列 硬度40 IRHD的丙烯腈-丁二烯橡胶(丁腈橡胶(NBR)) 第2版》.pdf ASD-STAN PREN 2104-1995 Aerospace Series Acrylonitrile-Butadiene Rubber (NBR) Hardness 40 IRHD (Edition 2)《航空航天系列 硬度40 IRHD的丙烯腈-丁二烯橡胶(丁腈橡胶(NBR)) 第2版》.pdf
  • 相关搜索

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

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