首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
admin
2009-05-15
73
问题
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。
本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列表中进行选择,程序就会将选中条目的内容以及编号(从0开始)分别在文本框Txt_Content和Txt_Index中显示出来。
【程序代码5.1】
Private Sub Combol_Click()
Txt_Content. Text=Combol. (1)
Txt_Index. Text=Combol. (2)
End Sub
(注:可供(2)处选择的选项:Number,List,Index,ListIndex,ListCount)
【应用说明5.2】
本应用程序的运行窗口如下图所示。
当用户在输入框(名为Txt_Input)中输入数值数据,并从下拉式列表框(名为CmbOp)中选择所需的运算后。输出框(名为Txt_Output)中就会显示运算的结果。用户单击“清除”按钮(名为 CmdClear)后,输入框和输出框都清空。
开发该应用的部分程序代码如下:
【程序代码5.2】
Private Sub CmbOp_Click()
Dim DataIn As Double,DataOut as Double
DataIn =(3)
Select Case (4)
Case "取整数部分"
DataOut = Int(DataIn)
Case "求平方根"
If DataIn<0 Then
MagBox "负数不能开平方!"
Else
DataOut = sqr(DataIn)
End If
Case "取绝对值"
DataOut = Abs(DataIn)02502
(5)
Txt_Output.Text=str $(DataOut)
End Sub
选项
答案
(5)EndSelect
解析
此处是分支语句结束,应当填结束标志。
转载请注明原文地址:https://www.kaotiyun.com/show/65jZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
阅读下列说明,回答问题1至问题3。[说明]某网站登录系统采用MD5对用户信息进行加密,用户登录界面为login.html,errorasp用于显示登录出错信息,list.asp用于显示正确登录后页面。[login.html文档的内容
A programmer must know about a function’s(74)to Call it correctly.
(69)is permanently stored in the computer and provides a link between the hardware and other programs that run on the PC.
C++ is used with proper(71)design techniques.
The World Wide Web is the latest evolution of an effort to make information on computers(68)the world available to as many users
The major goal of USB was to define an external expansion bus which makes adding(70)to a PC as easy as hooking up a telephone to
One use of networks is to let several computers share(71)such as file systems, printers, and tape drives.
ByusingMP3,a600M-bytemusicCDcanbe(1)_____to50Mbytesorless.Itcanbestreamed(downloadedinchunks)sothatyoucanb
By using MP3, a 600M-byte music CD can be(70)to 50M bytes or less. It can be streamed(downloaded in chunks)so that you can begin
By using(26), a 600M -byte music CD can be compressed to 50M bytes or less. It can be streamed(downloaded in chunks) so that you
随机试题
以下属于SQL语句的功能是()SELECTcourse.课程名,course.学时数FROMcourseWHEREcourse.学时数>100;
髋臼()
洛伐他汀的作用靶点是
对四周与土层紧密接触带地下室外墙的整体式筏形基础,满足刚性地基假定条件,基底水平地震剪力和倾覆力矩在8度抗震设防时应考虑的折减系数为()。
6年分期付款购物,每年年初付500元,利率为10%,则该项分期付款相当于现在一次性支付现金2412.7元。(P/S,10%,5)=0.6209。()
剩余价值率反映的是______,而利润率反映的则是______。
北伐战争中在湖北和湖南战场上消灭的是()的主力。
There______nothingmorefordiscussion,themeetingcametoanendhallanhourearlier.
接入网技术复杂、实施困难、影响面广。下面哪一种技术不是典型的宽带网络接入技术?______。
A、RiverThames.B、RiverRhine.C、RiverNile.D、RiverDanube.A此题考查听细节的能力。抓住关键词RiverInLondon,Londonissituatedonthebankso
最新回复
(
0
)