首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是( )。 option base 1 Private Sub Command1_Ctick() Dim a (5) As Integer
在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是( )。 option base 1 Private Sub Command1_Ctick() Dim a (5) As Integer
admin
2012-03-22
23
问题
在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是( )。 option base 1 Private Sub Command1_Ctick() Dim a (5) As Integer Dim k As Integer Dim total As Integer a(1)=2 a(2)=5 a(3)=4 a(4)=10 a(5)=6 For k=1 To 5 total=total+a(k) Next k Print total End Sub
选项
A、10
B、15
C、27
D、35
答案
C
解析
转载请注明原文地址:https://kaotiyun.com/show/yFhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个命令按钮,然后编写如下事件过程:OptionBase1PrivateSubCommand1_Click()Dimaa=Array(1,2,3,4)j=1
以下有关数组定义的语句序列中,错误的是______。
在窗体上有一个过程函数,然后编写如下事件程序,该过程的功能是用选择交换法将10个数排成升序,请在空白处填入适当的语句。 Sub SORT() Dima(1To10) Fori=1To10 a(i)=Val(InputB
由关系数据库系统支持的完整性约束是指【】和参照完整性。
关系式x≤-5或x≥5所对应的布尔表达式是【】。
根据变量的作用域,可以将变量分为3类,分别为
下面程序是由鼠标事件在窗体上画图,如果按下鼠标将可以画图,双击窗体可以清除所画图形。补充完整下面的程序。首先在窗体层定义如下变量:DimPaintStartAsBoolean编写如下事件过程:PrivateSubForm_Load()
以下程序的功能是:把当前目录下的顺序文件smtextl.txt的内容读入内存,并在文本框Texd中显示出来。请填空。PfivmeSubCommandl_Click()DiminDataAsStringText
执行下列语句后,显示输入对话框,此时如果单击“确定”按钮,则变量strInput的内容是:_______。atrInput=InputBox("请输入字符串","字符串对话框","字符串")
有如下的程序段,该程序段执行完后,共执行的循环次数是 total=0 Counter=1 Do PrintCounter total=total*Counter+1 Printtotal Counter=Counter+1 I
随机试题
Passengersshouldallowfor______traveltimetotheairportinrushhourtraffic.
患者,男,72岁。因胃癌晚期,不能进食,需经静脉供给高营养以维持生命,采用颈外静脉穿刺法输液,其穿刺部位为下颌角与锁骨上缘中点连线的()。
按照以证据为基础的信息质量评价标准,美国药典信息开发部从1996年起对药物适应证或禁忌证的信息开始注明其循证医学证据等级,其中的E类证据是
发生意外穿髓后首选的处理方法是
到期收益率的暗含条件有()。
下列各项关于现金周转期的表述中,正确的有()。
()被誉为“科学教育学之父”。他强调“教师为中心、教材为中心、课堂为中心”,被称为传统教育学的代表。
对二叉树的结点从1开始进行连续编号,要求每个结点的编号大于其左、右孩子的编号,同一结点的左右孩子中,其左孩子的编号小于其右孩子的编号,为实现编号可采用的遍历是()。
设z=f(x,y)在点(1,1)处可微,f(1,1)=1,f1’(1,1)=a,f2’(1,1)=b,又μf[x,f(x,x)],求|x=1.
ReadthetextbelowandanswerQuestions8-13.RightsintheworkplaceThisleafletexplainsyourlegal
最新回复
(
0
)