[计算机类试卷]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属性来控制的。

展开阅读全文
相关资源
猜你喜欢
  • API TR 934-B-2011 Fabrication Considerations for Vanadium-Modified Cr-Mo Steel Heavy Wall Pressure Vessels (First Edition)《钒改性铬-钼钢制厚壁压力容器的制造考虑 n》.pdf API TR 934-B-2011 Fabrication Considerations for Vanadium-Modified Cr-Mo Steel Heavy Wall Pressure Vessels (First Edition)《钒改性铬-钼钢制厚壁压力容器的制造考虑 n》.pdf
  • API TR 934-D-2010 Technical Report on the Materials and Fabrication Issues of 11 4Cr-1 2Mo and 1Cr-1 2Mo Steel Pressure Vessels (First Edition)《关于11 4Cr-1 2Mo和1 cr-1 2mo钢制压力容器材料和制造.pdf API TR 934-D-2010 Technical Report on the Materials and Fabrication Issues of 11 4Cr-1 2Mo and 1Cr-1 2Mo Steel Pressure Vessels (First Edition)《关于11 4Cr-1 2Mo和1 cr-1 2mo钢制压力容器材料和制造.pdf
  • API TR 934-D-2010 Technical Report on the Materials and Fabrication Issues of 11 4Cr-1 2Mo and 1Cr-1 2Mo Steel Pressure Vessels (First Edition)《关于11 4Cr-1 2Mo和1 cr-1 2mo钢制压力容器材料和制造_1.pdf API TR 934-D-2010 Technical Report on the Materials and Fabrication Issues of 11 4Cr-1 2Mo and 1Cr-1 2Mo Steel Pressure Vessels (First Edition)《关于11 4Cr-1 2Mo和1 cr-1 2mo钢制压力容器材料和制造_1.pdf
  • API TR 934-F PART 1-2017 Impact of Hydrogen Embrittlement on Minimum Pressurization Temperature for Thick-wall Cr-Mo Steel Reactors in High-pressure H2 Service-Initial Technical Ba.pdf API TR 934-F PART 1-2017 Impact of Hydrogen Embrittlement on Minimum Pressurization Temperature for Thick-wall Cr-Mo Steel Reactors in High-pressure H2 Service-Initial Technical Ba.pdf
  • API TR 934-F PART 1-2017 Impact of Hydrogen Embrittlement on Minimum Pressurization Temperature for Thick-wall Cr-Mo Steel Reactors in High-pressure H2 Service-Initial Technical Ba_1.pdf API TR 934-F PART 1-2017 Impact of Hydrogen Embrittlement on Minimum Pressurization Temperature for Thick-wall Cr-Mo Steel Reactors in High-pressure H2 Service-Initial Technical Ba_1.pdf
  • API TR 934-F PART 2-2017 Literature Review of Fracture Mechanics Cbased Experimental Data for Internal Hydrogen-assisted Cracking of Vanadium-modified 2 Cr-1Mo Steel (First Edition.pdf API TR 934-F PART 2-2017 Literature Review of Fracture Mechanics Cbased Experimental Data for Internal Hydrogen-assisted Cracking of Vanadium-modified 2 Cr-1Mo Steel (First Edition.pdf
  • API TR 934-F PART 3-2017 Subcritical Cracking of Modern 2 Cr-1Mo- V Steel Due to Dissolved Internal Hydrogen and H2 Environment Research Report (FIRST EDITION).pdf API TR 934-F PART 3-2017 Subcritical Cracking of Modern 2 Cr-1Mo- V Steel Due to Dissolved Internal Hydrogen and H2 Environment Research Report (FIRST EDITION).pdf
  • API TR 934-G-2016 Design Fabrication Operational Effects Inspection Assessment and Repair of Coke Drums and Peripheral Components in Delayed Coking Units (FIRST EDITION).pdf API TR 934-G-2016 Design Fabrication Operational Effects Inspection Assessment and Repair of Coke Drums and Peripheral Components in Delayed Coking Units (FIRST EDITION).pdf
  • API TR 938-B-2008 Use of 9Cr-1Mo-V (Grade 91) Steel in the Oil Refining Industry (First Edition)《炼油工业中使用9Cr-1Mo-V(91级)钢.第1版》.pdf API TR 938-B-2008 Use of 9Cr-1Mo-V (Grade 91) Steel in the Oil Refining Industry (First Edition)《炼油工业中使用9Cr-1Mo-V(91级)钢.第1版》.pdf
  • 相关搜索

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

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