[计算机类试卷]国家二级VB机试(上机操作)模拟试卷317及答案与解析.doc

上传人:outsidejudge265 文档编号:499728 上传时间:2018-11-29 格式:DOC 页数:3 大小:46.50KB
下载 相关 举报
[计算机类试卷]国家二级VB机试(上机操作)模拟试卷317及答案与解析.doc_第1页
第1页 / 共3页
[计算机类试卷]国家二级VB机试(上机操作)模拟试卷317及答案与解析.doc_第2页
第2页 / 共3页
[计算机类试卷]国家二级VB机试(上机操作)模拟试卷317及答案与解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 VB 机试(上机操作)模拟试卷 317及答案与解析 一、基本操作题 1 (1)在名称为 Form1的窗体上画一个标题为 “直辖市 ”、名称为 Frame1的框架,在框架中画个名称为 Combol的组合框,其编辑域为空,有如图所示的 4个列表项,外观风格也与图中相同。注意:存盘时必须存放在考生文件夹下,工程文件名为 sjt1 vbp,窗体文件名为Sjt1.frm。 (2)在名称为 Forml的窗体上画一个名称为Command1、标题为 “0”的命令按钮;再画一个名称为 Timer1的计时器,请通过属性窗口设置适当的属 性,并编写适当的事件过程,使得程序运行时,单击命令按钮后,该按钮标题

2、上的数字每 2秒在原有基础上加 2。要求程序中不得使用变量,每个事件过程中只能写一条语句。 注意:存盘时必须存放在考生文件夹下,工程文件名为 Sjt2 vbp,窗体文件名为 Sjt2 frm。 二、简单应用题 2 (1)在考生文件夹下有一个工程文件 sjt3 vbp。程序的功能是通过键盘向文本框中输人大、小写字母和数字。单击标题为 “统计 ”的命令按钮,分别统计输入字符串中大写字母、小写字母及数字字符的个数,并将统计结果分别在标签控件数组 x中显示,如 图所示。 在给出的窗体文件中已经添加了全部控件,但程序不完整。要求:去掉程序中的注释符,把程序中的 ?改为正确的内容。 注意:不能修改程序的其

3、他部分和控件属性,最后将修改后的文件按原文件名进行存盘。 (2)考生文件夹下的工程文件 sjf4 vbp中有两个名称分别为 List1、 List2的列表框控件,两个名称分别为Command1、 Command2,标题分别为 “”、 “”,将 List1中的表项添加到 List2中,同时将List1中选中的表项清空;单击 “ 三、综合应用题 3 在考生文件夹下有一个工程文件 sjt5 vbp,含三个窗体,标题分别为 “启动 ”、 “注册 ”、 “登录 ”,程序运行时显示 “启动 ”窗体,单击窗体上按钮时弹出对应窗体进行注册或登录。 注册信息放在全局数组 users中,注册用户数 (小于或等于

4、10个 )放在全局变量 n中 (均已在标准模块中定义 )。 注册时用户名不能重复,且 “口令 ”与 “验证口令 ”必须相同,注册成功则在 “启动 ”窗体的标签中提示 “注册成功 ”,否则提示相应错误信息。登录时,检验用户名和口令,若正确,则在 “启动 ”窗体的标签上提示 “登录成功 ”,否则提 示相应错误信息。 标准模块中函数 finduser 的功能是:在 users数组中搜索用户名 (参数 ch),找到则返回该用户名在 users中的位置,否则返回 0。 文件中已经给出了所有控件和程序,但程序不完整,请去掉程序中的注释符,把 Form2、Form3窗体文件中的 ?改为正确的内容。 注意:不得修改已经存在的程序和控件的属性;最后,程序按原文件名存盘。 国家二级 VB 机试(上机操作)模拟试卷 317答案与解析

展开阅读全文
相关资源
猜你喜欢
  • 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