【计算机类职业资格】VB机试章节练习试卷6及答案解析.doc

上传人:postpastor181 文档编号:1318714 上传时间:2019-10-17 格式:DOC 页数:2 大小:39KB
下载 相关 举报
【计算机类职业资格】VB机试章节练习试卷6及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】VB机试章节练习试卷6及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、VB机试章节练习试卷 6及答案解析(总分:8.00,做题时间:90 分钟)一、简单应用题(总题数:4,分数:8.00)1.简单应用题()(分数:2.00)_2.在考生文件夹,扣有工程文件 execise52.vbp及其窗体文件 execise52.frm。在名为 Form1的窗体有 3个复选框,名称分别为 Chk1、Chk2 和 Chk3,标题依次为“数学”、“英语”和“政治”;还有一个名为Cmd1的命令按钮,标题为“显示”。 要求程序运行后,如果选中某个复选框,则当单击“显示”命令按钮时,则显示相应的信息。例如,如果选中“数学”和“英语”复选框,则单击“显示”命令按钮后,在窗体上显示“我喜欢

2、的课程足数学英语”,如下图所示;而如果选中“数学”、“英语”和“政治”复选框,则单击“显示”按钮后,在窗体上显示“我喜欢的课程是数学英语政治”。本程序不完整,请补充完整,并能正确运行。 (分数:2.00)_3.在名为 Form1的窗体上绘制一个名为 Text1的文本框,再建立一个名为 vbFormat的弹出式菜单,它含3个菜单项,标题分别为“加粗”、“斜体”和“下划线”,名称分别为 vbMenu1、vbMenu2、vbMenu3。 请编写适当的事件过程,在运行时当用鼠标右键单击文本框时,弹出此菜单,选中一个菜单项后,则进行菜单标题所描述的操作,如下图所示。 (分数:2.00)_4.在名为 Fo

3、rm1的窗体上建立一个文本框,名为 Text1;一个命令按钮,名为 Cmd1,标题为“计算”,如下图所示。程序运行后,单击“计算”命令按钮,通过在对话框输入整数 10,放入整型变量 s中,然后计算 s!(提示:运算结果应放入 Long型变量中),在文本框中显示结果,并把结果存入文件 output.txt中(在考生文件夹中有一个标准模块 mode.bas,该模块中提供了保存文件的过程 putdata,考生可以直接调用)。 (分数:2.00)_VB机试章节练习试卷 6答案解析(总分:8.00,做题时间:90 分钟)一、简单应用题(总题数:4,分数:8.00)1.简单应用题()(分数:2.00)_解

4、析:2.在考生文件夹,扣有工程文件 execise52.vbp及其窗体文件 execise52.frm。在名为 Form1的窗体有 3个复选框,名称分别为 Chk1、Chk2 和 Chk3,标题依次为“数学”、“英语”和“政治”;还有一个名为Cmd1的命令按钮,标题为“显示”。 要求程序运行后,如果选中某个复选框,则当单击“显示”命令按钮时,则显示相应的信息。例如,如果选中“数学”和“英语”复选框,则单击“显示”命令按钮后,在窗体上显示“我喜欢的课程足数学英语”,如下图所示;而如果选中“数学”、“英语”和“政治”复选框,则单击“显示”按钮后,在窗体上显示“我喜欢的课程是数学英语政治”。本程序不

5、完整,请补充完整,并能正确运行。 (分数:2.00)_正确答案:(正确答案: )解析:3.在名为 Form1的窗体上绘制一个名为 Text1的文本框,再建立一个名为 vbFormat的弹出式菜单,它含3个菜单项,标题分别为“加粗”、“斜体”和“下划线”,名称分别为 vbMenu1、vbMenu2、vbMenu3。 请编写适当的事件过程,在运行时当用鼠标右键单击文本框时,弹出此菜单,选中一个菜单项后,则进行菜单标题所描述的操作,如下图所示。 (分数:2.00)_正确答案:(正确答案: )解析:4.在名为 Form1的窗体上建立一个文本框,名为 Text1;一个命令按钮,名为 Cmd1,标题为“计算”,如下图所示。程序运行后,单击“计算”命令按钮,通过在对话框输入整数 10,放入整型变量 s中,然后计算 s!(提示:运算结果应放入 Long型变量中),在文本框中显示结果,并把结果存入文件 output.txt中(在考生文件夹中有一个标准模块 mode.bas,该模块中提供了保存文件的过程 putdata,考生可以直接调用)。 (分数:2.00)_正确答案:(正确答案: )解析:

展开阅读全文
相关资源
猜你喜欢
  • BS EN 4172-2006 Aerospace series - Lockbolts protruding head sheartype close tolerance in titanium alloy TI-P64001 anodized metric series - Classification 1 100 MPa (at ambient tem.pdf BS EN 4172-2006 Aerospace series - Lockbolts protruding head sheartype close tolerance in titanium alloy TI-P64001 anodized metric series - Classification 1 100 MPa (at ambient tem.pdf
  • BS EN 4173-2006 Aerospace series - Lockbolts 100 countersunk normal head sheartype close tolerance in titanium alloy TI-P64001 anodized metric series - Classification 1100 MPa (at .pdf BS EN 4173-2006 Aerospace series - Lockbolts 100 countersunk normal head sheartype close tolerance in titanium alloy TI-P64001 anodized metric series - Classification 1100 MPa (at .pdf
  • BS EN 4174-2006 Collars swage locking sheartype in aluminium alloy 2024 anodized or chromated metric series《航天航空系列 阳极电镀或铬酸盐处理铝合金2024米制系列、连接模压锁紧凹头紧固件》.pdf BS EN 4174-2006 Collars swage locking sheartype in aluminium alloy 2024 anodized or chromated metric series《航天航空系列 阳极电镀或铬酸盐处理铝合金2024米制系列、连接模压锁紧凹头紧固件》.pdf
  • BS EN 4175-2005 Aerospace series - Collars flanged swage locking sheartype in titanium TI-P99002 metric series《航天航空系列 TI-P99002型钛合金米制系列、法兰连接模压锁紧切变型垫圈》.pdf BS EN 4175-2005 Aerospace series - Collars flanged swage locking sheartype in titanium TI-P99002 metric series《航天航空系列 TI-P99002型钛合金米制系列、法兰连接模压锁紧切变型垫圈》.pdf
  • BS EN 4176-2005 Aerospace series - Lockbolts 100  countersunk normal head or protruding head tension- sheartype close tolerance in titanium alloy TI-P64001 anodized or with alumini.pdf BS EN 4176-2005 Aerospace series - Lockbolts 100 countersunk normal head or protruding head tension- sheartype close tolerance in titanium alloy TI-P64001 anodized or with alumini.pdf
  • BS EN 4179-2017 Aerospace series Qualification and approval of personnel for non-destructive testing《航空航天系列 无损检验人员的资格和审批》.pdf BS EN 4179-2017 Aerospace series Qualification and approval of personnel for non-destructive testing《航空航天系列 无损检验人员的资格和审批》.pdf
  • BS EN 4180-2002 Aerospace series - Circular tubes for fluids in titanium and titanium alloys - Wide tolerances - Diameter 4 mm D 40 mm - Dimensions《航空航天系列 流体用钛及钛合金圆形管 宽度公差 直径为4mm D.pdf BS EN 4180-2002 Aerospace series - Circular tubes for fluids in titanium and titanium alloys - Wide tolerances - Diameter 4 mm D 40 mm - Dimensions《航空航天系列 流体用钛及钛合金圆形管 宽度公差 直径为4mm D.pdf
  • BS EN 4182-2001 Aerospace series - Pipe coupling 8 30 in titanium alloy - Tees reduced《航空航天系列 钛合金管连接件830 异径三通管》.pdf BS EN 4182-2001 Aerospace series - Pipe coupling 8 30 in titanium alloy - Tees reduced《航空航天系列 钛合金管连接件830 异径三通管》.pdf
  • BS EN 4183-2001 Aerospace series - Pipe coupling 8 30 in titanium alloy - Elbows 90  welded ends《航空航天系列 钛合金管连接件830 90弯头焊接端头》.pdf BS EN 4183-2001 Aerospace series - Pipe coupling 8 30 in titanium alloy - Elbows 90 welded ends《航空航天系列 钛合金管连接件830 90弯头焊接端头》.pdf
  • 相关搜索

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

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