【计算机类职业资格】国家二级VB机试(上机操作)-试卷85及答案解析.doc

上传人:medalangle361 文档编号:1332780 上传时间:2019-10-17 格式:DOC 页数:3 大小:45.50KB
下载 相关 举报
【计算机类职业资格】国家二级VB机试(上机操作)-试卷85及答案解析.doc_第1页
第1页 / 共3页
【计算机类职业资格】国家二级VB机试(上机操作)-试卷85及答案解析.doc_第2页
第2页 / 共3页
【计算机类职业资格】国家二级VB机试(上机操作)-试卷85及答案解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 VB 机试(上机操作)-试卷 85 及答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.请根据以下各小题的要求设计 Visual Basic 应用程序(包括界面和代码)。(1)在名称为 Forml、标题为“列表框练习”的窗体上画一个名称为 Listl 的列表框,表项内容依次输入 XXX、ddd、mmm 和 aaa,且以宋体 14 号字显示表项内容,如图 3-93(a)所示。最后设置相应属性,使运行后列表框中的表项按字母升序方式排列,如图 393(b)所示。 注意:存盘时,将文件保存至考生文件夹下,且窗体文件名为sjtlfrm,工程文件名为

2、 sjtlvbp。(2)在名称为 Forml 的窗体上,画一个名称为 Labell 的标签,其标题为“计算机等级考试”,字体为宋体,字号为 12 号,且能根据标题内容自动调整标签的大小。再画两个名称分别为 Commandl、Command2,标题分别为“缩小”和“还原”的命令按钮(如图 394 所示)。(分数:2.00)_二、简单应用题(总题数:1,分数:2.00)2.(1)在考生文件夹下有一个工程文件 vbsi3vbp,相应的窗体文件名为 vbsi3frm。在窗体上有一个命令按钮,其名称为 cmdAdd,标题为“添加”;有一个文本框,名称为 txtSentense,初始内容为空白;有一个列表

3、框,名称为 lstWord。程序运行后,在文本框中输入一个英文句子(由多个单词组成,各单词之间用一个窄格分开),然后单击命令按钮,程序将把该英文句子分解为单词,并把每个单词作为一个项目添加到列表框巾,如图 328 所示。该程序不完整,请把它补充完整。 要求:去掉程序中的注释符,把程序中的“?”改为正确的内容,使其能正确运行,但不能修改稃序中的其他部分。最后把修改后的文件按原文件名存盘。 程序源码: Private Sub cmdAdd Click() Dim S1 As String, S2 As String DimI1 As Inteqer S1=? I1=1 Do Do While Mid(s1, I 1, 1) ? AndI1? AndI1“”And I 1 a(j) Then t=a(i) a(i)=a(j) a(j)=t End If Next Next 步骤 3:按键运行程序,先单击“读数据”按钮,再单击“排序”按钮,最后单击窗体右上角的关闭按钮结束程序。 步骤 4:按要求将文件保存至考生文件夹中。)解析:

展开阅读全文
相关资源
猜你喜欢
  • BS PD IEC TS 62763-2013_5284 Pilot function through a control pilot circuit using PWM (pulse width modulation) and a control pilot wire《通过控制导向线使用PWM (脉冲宽度调制) 的导向功能和控制导向线》.pdf BS PD IEC TS 62763-2013_5284 Pilot function through a control pilot circuit using PWM (pulse width modulation) and a control pilot wire《通过控制导向线使用PWM (脉冲宽度调制) 的导向功能和控制导向线》.pdf
  • BS ISO 8070-2007 Milk and milk products - Determination of calcium sodium potassium and magnesium contents - Atomic absorption spectrometric method《牛奶和奶制品 钙、钠、钾和镁含量的测定 原子吸.pdf BS ISO 8070-2007 Milk and milk products - Determination of calcium sodium potassium and magnesium contents - Atomic absorption spectrometric method《牛奶和奶制品 钙、钠、钾和镁含量的测定 原子吸.pdf
  • BS ISO 8082-1-2009 Self-propelled machinery for forestry - Laboratory tests and performance requirements for roll-over protective structures - General machines《林业用自推进机械 防倾.pdf BS ISO 8082-1-2009 Self-propelled machinery for forestry - Laboratory tests and performance requirements for roll-over protective structures - General machines《林业用自推进机械 防倾.pdf
  • BS ISO 8082-2-2011 Self-propelled machinery for forestry Laboratory tests and performance requirements for roll-over protective structures Machines having a rotating platf.pdf BS ISO 8082-2-2011 Self-propelled machinery for forestry Laboratory tests and performance requirements for roll-over protective structures Machines having a rotating platf.pdf
  • BS ISO 8083-2006 Machinery for forestry - Falling-object protective structures (FOPS) - Laboratory tests and performance requirements《林业机械 落体防护装置(FOPS) 实验室试验和性能要求》.pdf BS ISO 8083-2006 Machinery for forestry - Falling-object protective structures (FOPS) - Laboratory tests and performance requirements《林业机械 落体防护装置(FOPS) 实验室试验和性能要求》.pdf
  • BS ISO 8086-2004 Dairy plant - Hygiene conditions - General guidance on inspection and sampling procedures《乳品厂 卫生条件 检验和取样程序通用指南》.pdf BS ISO 8086-2004 Dairy plant - Hygiene conditions - General guidance on inspection and sampling procedures《乳品厂 卫生条件 检验和取样程序通用指南》.pdf
  • BS ISO 8096-2005 Rubber- or plastics-coated fabrics for water resistant clothing - Specification《雨衣用橡胶或塑料涂覆织物 规范》.pdf BS ISO 8096-2005 Rubber- or plastics-coated fabrics for water resistant clothing - Specification《雨衣用橡胶或塑料涂覆织物 规范》.pdf
  • BS ISO 8097-2001 Aircraft Minimum airworthiness requirements and test conditions for certified air cargo unit load devices《航空器 经认证的航空货运集装单元装置最低适航性要求和试验条件》.pdf BS ISO 8097-2001 Aircraft Minimum airworthiness requirements and test conditions for certified air cargo unit load devices《航空器 经认证的航空货运集装单元装置最低适航性要求和试验条件》.pdf
  • BS ISO 8114-1993 Textile machinery and accessories - Spindles for ring-spinning and doubling machines - List of equivalent terms《纺织机械和附件 环锭纺纱机和并线机用锭子 同义术语表》.pdf BS ISO 8114-1993 Textile machinery and accessories - Spindles for ring-spinning and doubling machines - List of equivalent terms《纺织机械和附件 环锭纺纱机和并线机用锭子 同义术语表》.pdf
  • 相关搜索

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

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