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

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 3476-011-2001 Aerospace Series Connectors Electrical Circular Bayonet Coupling Operating Temperature 175 Degrees C or 200 Degrees C Continuous Part 011 Dummy Receptac.pdf ASD-STAN PREN 3476-011-2001 Aerospace Series Connectors Electrical Circular Bayonet Coupling Operating Temperature 175 Degrees C or 200 Degrees C Continuous Part 011 Dummy Receptac.pdf
  • ASD-STAN PREN 3476-1998 Aerospace Series Steel FE-PL1501 (30CRMO12) Air Melted Softened Forging Stock a or D Less Than or Equal to 300 mm (Edition P2)《航空航天系列 a或D≤300mm 的FE-PL1501(3.pdf ASD-STAN PREN 3476-1998 Aerospace Series Steel FE-PL1501 (30CRMO12) Air Melted Softened Forging Stock a or D Less Than or Equal to 300 mm (Edition P2)《航空航天系列 a或D≤300mm 的FE-PL1501(3.pdf
  • ASD-STAN PREN 3478-1988 Aerospace Series Steel FE-PM63 Solution Annealed Transformation Treated and Precipitation Hardened 1310 Less Than or Equal to Rm Less Than or Equal to 1550 .pdf ASD-STAN PREN 3478-1988 Aerospace Series Steel FE-PM63 Solution Annealed Transformation Treated and Precipitation Hardened 1310 Less Than or Equal to Rm Less Than or Equal to 1550 .pdf
  • ASD-STAN PREN 3479-2000 Aerospace Series Steel FE-PM1802 (X5CrNiCu15-5) Consumable Electrode Remelted Solution Treated and Precipitation Treated Plate 6 mm Less Than or Equal to a .pdf ASD-STAN PREN 3479-2000 Aerospace Series Steel FE-PM1802 (X5CrNiCu15-5) Consumable Electrode Remelted Solution Treated and Precipitation Treated Plate 6 mm Less Than or Equal to a .pdf
  • ASD-STAN PREN 3480-2006 Aerospace series Steel FE-PA3601 (X6CrNiTi18-10) Air melted Softened Plate 6 mm Less than or Equal to a Less than or Equal to 50 mm 500 MPa Less than or Equ.pdf ASD-STAN PREN 3480-2006 Aerospace series Steel FE-PA3601 (X6CrNiTi18-10) Air melted Softened Plate 6 mm Less than or Equal to a Less than or Equal to 50 mm 500 MPa Less than or Equ.pdf
  • ASD-STAN PREN 3481-1988 Aerospace Series Steel FE-PA13 Annealed Reference Heat Treatment Softened Hollow Bars 5 Less Than or Equal to a Less Than or Equal to 12 mm (Issue P 1)《航空航天.pdf ASD-STAN PREN 3481-1988 Aerospace Series Steel FE-PA13 Annealed Reference Heat Treatment Softened Hollow Bars 5 Less Than or Equal to a Less Than or Equal to 12 mm (Issue P 1)《航空航天.pdf
  • ASD-STAN PREN 3482-1988 Aerospace Series Steel FE-PA13 Annealed Reference Heat Treatment Softened Forging Stock De Less Than or Equal to 100 mm (Issue P 1)《航空航天系列 De≤100mm的钢FE-PA13.pdf ASD-STAN PREN 3482-1988 Aerospace Series Steel FE-PA13 Annealed Reference Heat Treatment Softened Forging Stock De Less Than or Equal to 100 mm (Issue P 1)《航空航天系列 De≤100mm的钢FE-PA13.pdf
  • ASD-STAN PREN 3483-1997 Aerospace Series Steel FE-CM3801 (X5CrNiCu16-4) Homogenized Solution Treated Precipitation Hardened and Sub Zero Sand or Investment Casting Rm Greater Than .pdf ASD-STAN PREN 3483-1997 Aerospace Series Steel FE-CM3801 (X5CrNiCu16-4) Homogenized Solution Treated Precipitation Hardened and Sub Zero Sand or Investment Casting Rm Greater Than .pdf
  • ASD-STAN PREN 3484-1997 Aerospace Series Steel FE-CM3801 (X5CrNiCu16-4) as Cast Homogenized Solution Treated and Precipitation Hardened Remelting Stock (Edition P2)《航空航天系列 钢FE-CM38.pdf ASD-STAN PREN 3484-1997 Aerospace Series Steel FE-CM3801 (X5CrNiCu16-4) as Cast Homogenized Solution Treated and Precipitation Hardened Remelting Stock (Edition P2)《航空航天系列 钢FE-CM38.pdf
  • 相关搜索

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

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