[计算机类试卷]VB机试章节练习试卷86及答案与解析.doc

上传人:lawfemale396 文档编号:493985 上传时间:2018-11-28 格式:DOC 页数:3 大小:126.50KB
下载 相关 举报
[计算机类试卷]VB机试章节练习试卷86及答案与解析.doc_第1页
第1页 / 共3页
[计算机类试卷]VB机试章节练习试卷86及答案与解析.doc_第2页
第2页 / 共3页
[计算机类试卷]VB机试章节练习试卷86及答案与解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、VB机试章节练习试卷 86及答案与解析 一、综合应用题( 30分) 1 在窗体 Form1上建立 3个菜单 (名称分别为 vbRead、 vbCalc和 vbSave,标题分别为 “读数 ”、 “计算 ”和 “保存 ”),然后绘制一个文本框 (名称为 Text1, MultiLine属性设置为 Tree, ScrollBars属性设置为 2),如下图所示。 程序运行后,如果执行 “读数 ”命令,则读入 in49.txt文件中的 100个整数,放入一个数组中,数组的下界为 1;如果执行 “计算 ”命令,则把该数组中小于 50的元素在文本框中显示出来,求出它们 的和,并把所求得的和在窗体上显示出来

2、 如果执行 “保存 ”命令,则把所求得的和存入考生文件夹下的 out49.txt文件中。 在考生文件夹下有一个工程文件 execise49.vbp,考生可以装入该文件。窗体文件 execise49.frm中的 ReadData过程可以把 in49.txt文件中的 100个整数读入 Arr数组中:而 WriteData过程可以把指定的整数值写到考生文件夹指定的文件中 (整数值通过计算求得,文件名为 out49.txt)。 注意: 考生不得修改窗体文件中已经存在的程序。保存时,工程文件名仍为 execise49.vbp,窗体文件名仍为 execise49.frm。 2 在考生文件夹下有工程文件

3、execise50.vbp及窗体文件 execise50.frm。在名为Form1的窗体上有 3个 Labe1控件和 2个名称分别为 Cmd1和 Cmd2、标题分别为Begin和 Quit的命令按钮。编写函数 ITEM(A, N),其功能是由数字 A组成的不多于 N位数的整数,利用该函数求 55555-5555-555-55-5的值并把结果写入考生文件夹下的 out50.dat文件中。执行完毕, Begin按钮变成 “完成 ”按钮,且无效。如下图所示。 要求: 该程序不完整,请 在有问号 “?”的地方填入正确内容,然后删除问号 “?”及所有注释符“”,但不能修改其他部分。存盘时不得改变文件名和文件夹,相应的数据文件也保存到考生文件夹下,否则没有成绩。 VB机试章节练习试卷 86答案与解析 一、综合应用题( 30分) 1 【正确答案】 2 【正确答案】

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 2701-1988 Aerospace Series Aluminium Alloy (2024) Solution Treated Water Quench Cold Worked and Naturally Aged (T3) Drawn Tube for Structures 0 6 Less Than or Equal t.pdf ASD-STAN PREN 2701-1988 Aerospace Series Aluminium Alloy (2024) Solution Treated Water Quench Cold Worked and Naturally Aged (T3) Drawn Tube for Structures 0 6 Less Than or Equal t.pdf
  • ASD-STAN PREN 2702-2003 Aerospace Series Aluminium Alloy AL-P6061-T6 or T62 Extruded Bar and Section a or D Less Than or Equal to 150 mm (Edition P 3)《航空航天系列 铝合金AL-P6061-T6或T62制a或D.pdf ASD-STAN PREN 2702-2003 Aerospace Series Aluminium Alloy AL-P6061-T6 or T62 Extruded Bar and Section a or D Less Than or Equal to 150 mm (Edition P 3)《航空航天系列 铝合金AL-P6061-T6或T62制a或D.pdf
  • ASD-STAN PREN 2703-2003 Aerospace Series Aluminium Alloy AL-P2024-T4 or T42 Clad Sheet and Strip 0 3 mm Less Than or Equal to a Less Than or Equal to 6 mm (Edition P 1)《航空航天系列 铝合金A.pdf ASD-STAN PREN 2703-2003 Aerospace Series Aluminium Alloy AL-P2024-T4 or T42 Clad Sheet and Strip 0 3 mm Less Than or Equal to a Less Than or Equal to 6 mm (Edition P 1)《航空航天系列 铝合金A.pdf
  • ASD-STAN PREN 2704-2011 Aerospace series Aluminium alloy AL-P2024 T3511 Drawn bar De 75 mm (Edition P 1).pdf ASD-STAN PREN 2704-2011 Aerospace series Aluminium alloy AL-P2024 T3511 Drawn bar De 75 mm (Edition P 1).pdf
  • ASD-STAN PREN 2706-1985 Aerospace Series Aluminium Alloy 7009-T736510 Bar and Section 1 2 Less Than or Equal to (a or D) Less Than or Equal to 125 mm with Peripheral Coarse Grain C.pdf ASD-STAN PREN 2706-1985 Aerospace Series Aluminium Alloy 7009-T736510 Bar and Section 1 2 Less Than or Equal to (a or D) Less Than or Equal to 125 mm with Peripheral Coarse Grain C.pdf
  • ASD-STAN PREN 2708-1985 Aerospace Series Aluminium Alloy 7075-T73510 Bar and Section 1 2 Less Than or Equal to (a or D) Less Than or Equal to 100 mm with Peripheral Coarse Grain Co.pdf ASD-STAN PREN 2708-1985 Aerospace Series Aluminium Alloy 7075-T73510 Bar and Section 1 2 Less Than or Equal to (a or D) Less Than or Equal to 100 mm with Peripheral Coarse Grain Co.pdf
  • ASD-STAN PREN 2709-1985 Aerospace Series Aluminium Alloy 2024-T3510 Bar and Section 1 2 Less Than or Equal to (a or D) less Than or Equal to 150 mm with Peripheral Coarse Grain Con.pdf ASD-STAN PREN 2709-1985 Aerospace Series Aluminium Alloy 2024-T3510 Bar and Section 1 2 Less Than or Equal to (a or D) less Than or Equal to 150 mm with Peripheral Coarse Grain Con.pdf
  • ASD-STAN PREN 2712-002-1995 Aerospace Series Cables Electrical Single and Multicore for General Purpose Operating Temperatures between - 55 Degrees C and 150 Degrees C Part 002 Scr.pdf ASD-STAN PREN 2712-002-1995 Aerospace Series Cables Electrical Single and Multicore for General Purpose Operating Temperatures between - 55 Degrees C and 150 Degrees C Part 002 Scr.pdf
  • ASD-STAN PREN 2712-003-1995 Aerospace Series Cables Electrical Single and Multicore for General Purpose Operating Temperatures between - 55 Degrees C and 150 Degrees C Part 003 Scr.pdf ASD-STAN PREN 2712-003-1995 Aerospace Series Cables Electrical Single and Multicore for General Purpose Operating Temperatures between - 55 Degrees C and 150 Degrees C Part 003 Scr.pdf
  • 相关搜索

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

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