[计算机类试卷]VB机试模拟试卷36及答案与解析.doc

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

1、VB机试模拟试卷 36及答案与解析 一、基本操作题( 30分) 1 创建名称为 Form1,标题名为 “请输入密码 ”的窗体。在窗体上画一个标签,名称为 Label1,标题为 “请输入您的密码 ”。在标签的下方画一个文本框,名称为 “密码框 ”,其高度和宽度分别为 2000和 500。要求在输入密码时,文本框中显示 “*”字符。以上这些设置必须在设计过程中进行,运行时的窗体如图 1所示。程序中不得使用任何变量。 注意:存盘时必须存放在考生文件夹下,工程文件名为ylcl vbp,窗体文件名为 ylcl.frm。 二、简单应用题( 40分) 2 新建一个工程,要求实现的功能是,在窗体中实现从左向右

2、动态显示 “为人民服务 ”这几个字。字符串以 0.1秒一次的速度移动。程序运行情况如图 7所示。程序中不得使用任何变量。 注意:存盘时必须存放在考生文件夹下,工程文件名为ylc3.vbp,窗体文件名为ylc3.frmVB机试模拟试卷 36答案与解析 一、基本操作题( 30分) 1 【正确答案】 (1)Visual Basic集成环境中,执行 “文件 ”“ 新建工程 ”命令,选择“标准 Exe”。在 Form1的属性窗口中,将 Caption属性设置为 “输入密码 ”。 (2)在工具箱中选择标签控件,在窗体上创建标签,在属性窗口中将 Caption,属性设置为 “请输入您的密码 ”。在工具箱中选

3、择文本框控件,在标签下方画出文本框,在文本框属性窗口中,将 Height属性设置为 500,将 Width属性设置为2000,将 PasswordChar属性设置为 “*”。 (3)按 F5键运行程序,在文本框中输入字符,显示如图 1所示。 (4)执行 “文件 ”“ 保存工程 ”命令,将工程文件命名为 ylcl.vbp,窗体文件命名为 ylcl.frm。 二、简单应用题( 40分) 2 【正确答案】 Visual Basic集成环境中,执行 “文件 ”“ 新建工程 ”命令,选择 “标准 Exe”。创建窗体 Form1。 (2)在工具箱中选择 Timer控件,在窗体中画出一个计时器控件。设置其 Interval属性值为 100,即 0 1秒。双击 Timer控件弹出代码窗口,添加如下代码: Private Sub Timer1_Timer() Form1.Cis Form1.ScaleLeft=Form1.ScaleLeft-20 Form1.Print(“为人民服务 “) End Sub (3)按 F5键运行程序。如图 7所示。 (4)执行 “文件 ”“ 保存工程 ”命令,将工程文件命名为 ylc3.vbp,窗体文件命名为ylc3.frm。 【试题解析】 (3)第 3小题中,文本显示的水平坐标是通过 ScaleLeft属性来控制的。

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