首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下事件过程: Private Sub Form_Active() Dim Score(1 to 3) As Integer Dim i As Integer Dim t As Variant For i=3 To 1 step-1 Score (i)
有如下事件过程: Private Sub Form_Active() Dim Score(1 to 3) As Integer Dim i As Integer Dim t As Variant For i=3 To 1 step-1 Score (i)
admin
2013-01-23
25
问题
有如下事件过程:
Private Sub Form_Active()
Dim Score(1 to 3) As Integer
Dim i As Integer
Dim t As Variant
For i=3 To 1 step-1
Score (i)=2*i
Next
For Each t In Score
Print t
Next
End Sub
程序运行后窗体上显示的值为______。
选项
答案
2 4 6
解析
本题考查数组的定义和For Each…Next语句。题中定义了下标下界为1,下标上界为3的Score数组,通过For循环语句赋值后,再通过For Each…Next语句在窗体上输出数组中的每个成员。
转载请注明原文地址:https://kaotiyun.com/show/Iyhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
以下语句的输出结果是a=Sqr(3)PrintFormat(a,"$$####.###")
软件工程包括软件开发技术和软件工程管理。属于软件工程管理内容的是______。
下列正确的VisualBasic注释语句是
窗体是VisualBasic中的对象,具有自己的属性、方法和
要使时钟控件的Timer事件每隔3s发生一次,应把它的Interva1属性设置为()。
一个模块被多个模块调用,调用这个模块的模块个数称为【】。
如果一个工程含有多个窗体及标准模块,则以下叙述中错误的是______。
以下关于函数过程的叙述中,正确的是______。
数据流图是进行软件需求分析常用的工具,其中最基本的图符是:变换、数据流、数据存储和外部实体,其中用______图符来代表图中的数据池(数据最终的目的地)。
随机试题
Theworld’sgreatestsnow-cappedpeaks,whichruninachainfromtheHimalayastotheTianshanMountainsontheborderofChina
通气与血流比例失调,临床上最终可导致
医师行牙髓治疗时应注意无菌操作,不必要的内容是
内服涌吐热痰、宿食,外用研末吹鼻,可引去湿热的药物是
规划咨询的原则有()。
某水泥厂拟建一条干法水泥生产线及其配套设施,包括厂房建设、压缩空气站、物料储运系统,供配电系统等。关于物料储运系统,下列说法正确的是()。
Idon’tlike______asyouread.
Accordingtothemostrecentresearchonparenting,caretakerstendtousethreestrategiesfordiscipliningchildren.Power
Whatexactlyisalie?Isitanythingwesaywhichweknowisuntrue?Orisitsomethingmorethanthat?Forexample,supposea
A、Iwenttothelibrary.B、IusuallywatchTV.C、Sorry,Idon’tknow.D、Idon’tliketheprogram.B本题考查由How引导的特殊疑问句的回答。题目问:“你如何打
最新回复
(
0
)