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

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

1、VB机试章节练习试卷 65及答案与解析 一、简单应用题( 40分) 1 在考生文件夹中有一个工程文件 execise46.vbp和窗体文件 execise46.frm。在名为Form1的窗体上,有一个名为 Cmd1,标题为 Move的命令按钮,一个名为 VS1的垂直滚动条,一个名为 Text1初始内容为空的文本框。它的功能是在文本框中输入一个整数,单击 Move按钮后,如果输入的是正数,滚动条中的滚动框向下移动与该数相等的刻度,但如果超过了滚动条的最大刻度,则不移动,并且显示 “文本框中数值太大 ”;如果输入的是负数,滚动条 中的滚动框向上移动与该数相等的刻度,但如果超过了滚动条的最小刻度,则

2、不移动,并且显示 “文本框中数值太小 ”,如下图所示。 要求: 去掉程序中的注释符 “”,把程序中的问号 “?”改为正确的内容,使其实现上述功能,但不得修改程序的其他部分,也不得修改控件的属性。最后把修改过的程序按原名保存。 2 在名为 Form1的窗体上建立两个主菜单,其标题分别为 “文件 ”和 “帮助 ”,名称分别为 vbFi1e和 vbHe1p,在 “文件 ”菜单下有 3个菜单项,分别为 “新建 ”、 “打开 ”和“保存 ” (其名称分别为 vbNew、 vbOpen和 vbSave)。 要求程序运行后,如果选中“文件 ”下的某个菜单项,则将该菜单项的标题通过 MsgBox对话框显示出来

3、如下图所示。 注意: 文件必须存放在考生文件夹中,窗体文件名为 execise47.frm,工程文件名为 execise47.vbp。 3 在名为 Form1的窗体上建立一个文本框,名为 Text1;再建立一个命令按钮,名为 Cmd1,标题为 “计算 ”,如下图所示。 要求程序运行后,单击命令按钮,则计算出 1 200之间所有素数之和,并在文本框中显示结果,同时把结果存入文件 out48.txt中 (在考生文件夹中有标准模块 mode.bas,其中的 putdata过程可以把结果存入文件;而 isprime函数可以判断整数 x是否为素数,如果是素数,则函数返回 True,否则返回 False;考生可以把该模块文件添加到自己的工程中 )。 注意: 文件必须存放在考生文件夹中,窗体文件名为execise48.frm,工程文件名为 execise48.vbpo VB机试章节练习试卷 65答案 与解析 一、简单应用题( 40分) 1 【正确答案】 2 【正确答案】 3 【正确答案】

展开阅读全文
相关资源
猜你喜欢
  • BS PD ISO TS 12720-2014 Sustainability in buildings and civil engineering works Guidelines on the application of the general principles in ISO 15392《建筑物和土木工程的可持续性 ISO 15392中的一般原则应用指南》.pdf BS PD ISO TS 12720-2014 Sustainability in buildings and civil engineering works Guidelines on the application of the general principles in ISO 15392《建筑物和土木工程的可持续性 ISO 15392中的一般原则应用指南》.pdf
  • BS PD ISO TS 12812-2-2017 Core banking Mobile financial services Security and data protection for mobile financial services《核心银行系统 移动金融服务 移动金融服务的安全和数据保护》.pdf BS PD ISO TS 12812-2-2017 Core banking Mobile financial services Security and data protection for mobile financial services《核心银行系统 移动金融服务 移动金融服务的安全和数据保护》.pdf
  • BS PD ISO TS 12812-3-2017 Core banking Mobile financial services Financial application lifecycle management《核心银行系统 移动金融服务 金融应用生命周期管理》.pdf BS PD ISO TS 12812-3-2017 Core banking Mobile financial services Financial application lifecycle management《核心银行系统 移动金融服务 金融应用生命周期管理》.pdf
  • BS PD ISO TS 12812-4-2017 Core banking Mobile financial services Mobile payments-to-persons《核心银行系统 移动金融服务 个人移动支付》.pdf BS PD ISO TS 12812-4-2017 Core banking Mobile financial services Mobile payments-to-persons《核心银行系统 移动金融服务 个人移动支付》.pdf
  • BS PD ISO TS 12812-5-2017 Core banking Mobile financial services Mobile payments to businesses《核心银行系统 移动金融服务 商业移动支付》.pdf BS PD ISO TS 12812-5-2017 Core banking Mobile financial services Mobile payments to businesses《核心银行系统 移动金融服务 商业移动支付》.pdf
  • BS PD ISO TS 12901-2-2014 Nanotechnologies Occupational risk management applied to engineered nanomaterials Use of the control banding approach《纳米技术 适用于工程纳米材料的职业风险管理 联合控制方法的使用》.pdf BS PD ISO TS 12901-2-2014 Nanotechnologies Occupational risk management applied to engineered nanomaterials Use of the control banding approach《纳米技术 适用于工程纳米材料的职业风险管理 联合控制方法的使用》.pdf
  • BS PD ISO TS 13004-2013 9476 Sterilization of health care products Radiation Substantiation of selected sterilization dose Method VDmaxSD《医疗保健产品的消毒 辐射 选定灭菌计量的证实 VDmaxSD法》.pdf BS PD ISO TS 13004-2013 9476 Sterilization of health care products Radiation Substantiation of selected sterilization dose Method VDmaxSD《医疗保健产品的消毒 辐射 选定灭菌计量的证实 VDmaxSD法》.pdf
  • BS PD ISO TS 13399-2-2014 Cutting tool data representation and exchange Reference dictionary for the cutting items《切削工具数据的表示和交换 切割项参考字典》.pdf BS PD ISO TS 13399-2-2014 Cutting tool data representation and exchange Reference dictionary for the cutting items《切削工具数据的表示和交换 切割项参考字典》.pdf
  • BS PD ISO TS 13399-201-2014 Cutting tool data representation and exchange Creation and exchange of 3D models Regular inserts《切削工具数据的表示和交换 三维模型的创造和交流 常规刀片》.pdf BS PD ISO TS 13399-201-2014 Cutting tool data representation and exchange Creation and exchange of 3D models Regular inserts《切削工具数据的表示和交换 三维模型的创造和交流 常规刀片》.pdf
  • 相关搜索

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

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