|
2021年秋季《VisualBasic程序设计》形考任务1
1.[单选题] 如果要在文本框键入字符时,只显示某个字符,如果(*),应设置文本框的()属性。
A.Caption
B.PasswordChar
C.Text
D.Char
答:——B——
2.[单选题] VB6.0集成开发环境的主窗口中不包括()。 A.标题栏
B.菜单栏
C.状态栏
D.工具栏
答:——C——
3.[单选题] 下列正确的赋值语句是() A.x+y=20
B.y=x+20
C.3x=y D.s=
答:——B——
4.[单选题] 如果对象的名称为Mytext ,而且对象有一个属性Text,那么在代码中引用该属性的正确格式是()。
A.text.Mytext B.Mytext.Text
C.Mytext.(Text)
D.Mytext*Text 答:————
5.[单选题] 对于定时器(Tiner)控制,设置其定时是否开启的属性是()
A.Index
B.Tag C.Enabled
D.Left
答:————
6.[单选题] 窗体的load事件的触发时机是()
A.用户单击窗体时
B.窗体被加载时
C.窗体显示之后
D.窗体卸载时 答:————
7.[单选题] 假定已在窗体上画了多个控件,并有一个控件是活动的,为了在属性窗口中设置窗体的属性,预先应执行的操作是()。 A.单击窗体上没有控件的地方
B.单击任一个控件
C.不执行任何操作
D.双击窗体的标题栏
答:————
8.[单选题] 对象的性质和状态特征称为() A.事件
B.方法 C.属性
D.类
答:————
9.[单选题] 要在窗口体Fornl 内显示“myfrm”使用的语句是()
A.Form.caption=“myfrm” B.Fornl.caption=“myfrm”
C.forml.print“myfrm” D.form.print“myfrm”
答:————
10.[单选题] 与传统的程序设计语言相比,Visual Basic 最突出的特点是()。
A.结构化程序设计 B.程序开发环境
C.事件驱动编程机制
D.程序调试技术
答:————
11.[单选题] 下列可以激活属性窗口的操作是() A.用鼠标双击窗体的任何部位
B.执行“工程“菜单中的”属性窗口“命令
C.按Ctrl+F4
D.按F4
答:————
12.[单选题] 如果想要在文本框中的内容在运行时不能编辑,需要文本框的()属性设置为True.
A.Locked B.MultiLine
C.TabStop D.Visible
答:————
13.[单选题] 在设计应用程序时,可以查看到应用程序工程所有组成部分的窗口是()。 A.窗体设计
B.代码
C.属性
D.工程资源管理器窗口 答:————
14.[单选题] 当使用上下文相关的帮助时,选择要帮助的内容,然后按()键,就可出现MSDN窗口直接显示所需的帮助信息。 A.Help
B.F10 C.Ese
D.F1
答:————
15.[单选题] 将调试通过的工程经“文件”菜单的“生成.exe文件“编绎成名.exe后,将该可执行文件放到其它机器上不能运行的主要原因是() A.运行的机器上无VB系统
B.缺少.frm 窗体文件
C.该执行文件有病毒
D.以上原因都不对 答:————
16.[填空题] 定时器(Timer)控件可识别的事件是 <input type="text" maxlength="15" id="1a3ff122-450f-493c-b80e-3b5da1899511" responseid='RESPONSE_1' name="1a3ff122-450f-493c-b80e-3b5da1899511" />,发生了生该事件的时间间隔定时由定时器的 <input type="text" maxlength="18" id="1a3ff122-450f-493c-b80e-3b5da1899511" responseid='RESPONSE_2' name="1a3ff122-450f-493c-b80e-3b5da1899511" /> 属性设置,其单位为 <input type="text" maxlength="12" id="1a3ff122-450f-493c-b80e-3b5da1899511" responseid='RESPONSE_3' name="1a3ff122-450f-493c-b80e-3b5da1899511" />。
答:————17.[填空题] 工程文件的扩展名是 <input type="text" maxlength="13" id="ac47e884-16da-4c66-8d90-4419acefaf4d" responseid='RESPONSE_1' name="ac47e884-16da-4c66-8d90-4419acefaf4d" />,窗体文件扩展名是 <input type="text" maxlength="13" id="ac47e884-16da-4c66-8d90-4419acefaf4d" responseid='RESPONSE_2' name="ac47e884-16da-4c66-8d90-4419acefaf4d" />。
答:————18.[填空题] 要想在代码中给名为txtshow的文框赋予文本:GOODWORK!时,应当编写的语句是 <input type="text" maxlength="46" id="20ce5978-c191-4545-9cab-5712a9aaaae3" responseid='RESPONSE' name="20ce5978-c191-4545-9cab-5712a9aaaae3" /> 。
答:————
19.[填空题] 要使文本框显示滚动条,需要将其 <input type="text" maxlength="20" id="c08ea8dc-992b-454c-a12a-f421648870a3" responseid='RESPONSE_1' name="c08ea8dc-992b-454c-a12a-f421648870a3" />属性设置为 <input type="text" maxlength="11" id="c08ea8dc-992b-454c-a12a-f421648870a3" responseid='RESPONSE_2' name="c08ea8dc-992b-454c-a12a-f421648870a3" />。
答:————20.[填空题] 若命令按钮的名称为Cmdopen,程序要求单击以上命令按钮,打开一个窗口frml,请对以下事件过程填空。
Private Sub Cmdopen <input type="text" maxlength="17" id="dd91850b-bec9-4e6e-bf28-9b19901e814d" responseid='RESPONSE_1' name="dd91850b-bec9-4e6e-bf28-9b19901e814d" />
<input type="text" maxlength="19" id="dd91850b-bec9-4e6e-bf28-9b19901e814d" responseid='RESPONSE_2' name="dd91850b-bec9-4e6e-bf28-9b19901e814d" /> End Sud
答:————
21.[问答题] 简述事件驱动机制与传统编程方式的不同。
答:————
22.[问答题] 简述事件驱动的工作过程。
答:————23.[问答题] 什么是可视化编程和事件驱动?
答:————24.[问答题] <span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">设计一个计算程序。该程序用户界面如图</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">2</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">所示,由四个文本框:文本框</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">1</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">text1</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)、文本框</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">2</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">text2</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)、文本框</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">3</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">text3</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)、文本框</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">4</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">text4</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">),和三个按钮:命令按钮</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">1</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">command1</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)、命令按钮</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">2</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">command2</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)、命令按钮</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">3</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">(</span><span lang="EN-US" style="font-size: 10.5pt; font-family: "Times New Roman","serif"; background: white; color: black; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">command3</span><span style="font-size: 10.5pt; font-family: 宋体; background: white; color: black; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">)组成。程序运行后,用户按清除按钮,则清除文本框中显示的内容,按计算按钮,则计算三科平均成绩。单击退出按钮则退出。<br /><img width="500" height="226" alt="" src="/Attachment/Itembank/QuestionAttachments/201711/725aed80-50cb-4b39-937b-0ef97f823d6d/2017112215148694.jpg" /><br /></span>
答:————
|
上一篇:甘肃电大开放大学22《c++语言程序设计(专)》第一次形考任务满分形考作业非答案下一篇:甘肃电大开放大学22《visualbasic程序设计》形考任务2形考作业非答案
|