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

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

国家三级(网络技术)机试模拟试卷 137及答案与解析 一、程序设计题 1 国家三级(网络技术)机试模拟试卷 137答案与解析 一、程序设计题 1 【正确答案】 【试题解析】 首先定义变量并赋值,包括表示级数的整型变量 a1、 a2,赋初值 1,表示级数前 n项的和 s,其初值为 2,表示级数的第 n项 t,循环变量 i,级数 n项赋初值 1。 采用 for循环,循环变量 i从 0开始依次递增到 2。在循环体中对 m的值扩大10倍,当级数前 n项的和 s小于 m时,根据级数的第 n项等于第 n-2项与 2倍的第 n-1项的和,把表达式 a1+2*a2的值赋给变量 t。然后把级数前 n-1项的和 s加上第 n项的值 t赋给变量 s,求得级数前 n项的和赋给变量 s。把 n的值加 1,在下次循环中计算级数第 n+1项的值,把变量当前级数第 n-1项的值 a2赋给第 n-2项 a1,把当前的第 n项 t的值赋给第 n-1项 a2。当级数前 n项的和 s大于或等于m时,退出 while循环。在屏幕上输出变量 m和 n的 值,并把求的 n值赋给数组元素 bi,进入下一次 for循环。

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 2714-014-2008 Aerospace series Cables electrical single and multicore for general purpose Operating temperatures between - 55  and 260  Part 014 DR family 5 to 10 corr.pdf AECMA PREN 2714-014-2008 Aerospace series Cables electrical single and multicore for general purpose Operating temperatures between - 55 and 260 Part 014 DR family 5 to 10 corr.pdf
  • AECMA PREN 2715-1996 Aerospace Series Macrographic Examination of Aluminium and Aluminium Alloy Wrought Products Forging Stock and Forgings Edition P 2《航空和航天系列铝和铝合金锻造产品 模和锻件宏观检验》.pdf AECMA PREN 2715-1996 Aerospace Series Macrographic Examination of Aluminium and Aluminium Alloy Wrought Products Forging Stock and Forgings Edition P 2《航空和航天系列铝和铝合金锻造产品 模和锻件宏观检验》.pdf
  • AECMA PREN 2716-1996 Aerospace Series Test Method Determination of Susceptibility to Intergranular Corrosion Wrought Aluminium Alloy Products AL-P2XXX- Series AL-P7XXX- Series and .pdf AECMA PREN 2716-1996 Aerospace Series Test Method Determination of Susceptibility to Intergranular Corrosion Wrought Aluminium Alloy Products AL-P2XXX- Series AL-P7XXX- Series and .pdf
  • AECMA PREN 2717-1996 Aerospace Series Test Methods Determination of Susceptibility to Intergranular Corrosion Wrought Aluminium Alloy Products in AL-P5XXX- Series with a Magnesium 2.pdf AECMA PREN 2717-1996 Aerospace Series Test Methods Determination of Susceptibility to Intergranular Corrosion Wrought Aluminium Alloy Products in AL-P5XXX- Series with a Magnesium 2.pdf
  • AECMA PREN 2718-1997 Aerospace Series Aluminium and Aluminium Alloys Test Method Measurement of Circumferential Residual Stress in Circular Tubes with a Ratio D a Greater Than or E.pdf AECMA PREN 2718-1997 Aerospace Series Aluminium and Aluminium Alloys Test Method Measurement of Circumferential Residual Stress in Circular Tubes with a Ratio D a Greater Than or E.pdf
  • AECMA PREN 2719-2001 Aerospace Series Polycarbonate Sheet Technical Specification Edition P 1《航空航天系列聚碳酸酯板技术规范》.pdf AECMA PREN 2719-2001 Aerospace Series Polycarbonate Sheet Technical Specification Edition P 1《航空航天系列聚碳酸酯板技术规范》.pdf
  • AECMA PREN 2720-1990 Aerospace Series Test Method for Metallic Materials Testing of Susceptibility to Exfoliation Corrosion in 2XXX and 7XXX Series Wrought Aluminium Alloy Products.pdf AECMA PREN 2720-1990 Aerospace Series Test Method for Metallic Materials Testing of Susceptibility to Exfoliation Corrosion in 2XXX and 7XXX Series Wrought Aluminium Alloy Products.pdf
  • AECMA PREN 2721-1986 Aerospace Series Aluminum Alloy Al-C12-T4 Sand Castings Issue P 1《航空和航天系列铝合金Al-C12-T4 软铸造》.pdf AECMA PREN 2721-1986 Aerospace Series Aluminum Alloy Al-C12-T4 Sand Castings Issue P 1《航空和航天系列铝合金Al-C12-T4 软铸造》.pdf
  • AECMA PREN 2722-1986 Aerospace Series Aluminium Alloy A1-C12-T4 Chill Castings Issue P 1《航空和航天系列铝合金 A1-C12-T4 冷硬铸造》.pdf AECMA PREN 2722-1986 Aerospace Series Aluminium Alloy A1-C12-T4 Chill Castings Issue P 1《航空和航天系列铝合金 A1-C12-T4 冷硬铸造》.pdf
  • 相关搜索

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

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