首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若在窗体模块的声明部分声明了如下自定义类型和数组: Private Type rec Code As Integer Caption As String End Type Dim arr(5)As rec
若在窗体模块的声明部分声明了如下自定义类型和数组: Private Type rec Code As Integer Caption As String End Type Dim arr(5)As rec
admin
2020-02-27
27
问题
若在窗体模块的声明部分声明了如下自定义类型和数组:
Private Type rec
Code As Integer
Caption As String
End Type
Dim arr(5)As rec
选项
A、Print arr.Code(2), arr.Caption(2)
B、Print arr.Code, arr.Caption
C、Print arr(2).Code, arr(2).Caption
D、Print Code(2), Caption(2)
答案
C
解析
定义一个自定义类型的数组,数组元素表示为:数组名(下标).成员名,故选C。
转载请注明原文地址:https://kaotiyun.com/show/kDTp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下列事件的事件过程中,参数是输入字符ASCII码的是( )。
下面程序计算并输出的是( )。PrivateSubCommand1_Click() a=10 s=0 Do s=s+a*a*a a=a-1 LoopUntila<=0 PrintsEndSub
窗体上有一个名称为VScroll1的滚动条,当用鼠标拖动滚动条中的滚动块时,触发的事件是( )。
设有以下过程:PrivateSubproc(xAsInteger,OptionalyAsInteger)Printx,yEndSub针对此过程,下面正确的过程调用语句是
编写如下事件过程:PrivateSubForm_Activate()Dimscore(1To3)AsIntegerDimiAsInteger,tAsVariantFori=3To1Ste
下列叙述中正确的是
以下关于文本框的叙述中,正确的是
下面哪个属性肯定不是框架控件的属性()。
(1)在名称为Form1的窗体上添加一个名称为C1、标题为“改变颜色”的命令按钮,窗体标题为“改变窗体背景色”。编写程序,使得单击命令按钮时,将窗体的背景颜色改为红色(&HFF&)。运行程序后的窗体如图所示。要求:程序中不得使用变量,每个事件过程
下列运算符中,优先级别最高的是
随机试题
阴道栓的形状最好为
背景某工程整体地下室2层、主楼地上24层、裙房地上4层,钢筋混凝土全现浇框架剪力墙结构,填充墙为小型空心砌块砌筑。基础为整体筏板,地下室外墙为整体剪力墙混凝土刚性防水,外加SBS卷材防水层。平整场地结束后,施工单位马上进行了工程定位和测量放线,然后即
银行存款账户按存款人不同,分为单位银行结算账户和个人银行结算账户。以下属于个人银行结算账户的有()。
证券经纪人只能接受一家证券公司的委托,并()。
下列程序中,不能获取被审计单位是否对机械设备拥有所有权的审计证据的有()。
国家货币管理部门或中央银行所规定的利率是()。
简述我国人民民主专政实质上是无产阶级专政。
系统设计是根据系统分析的结果,完成系统的构建过程。其中,(27)________________是为各个具体任务选择适当的技术手段和处理方法;(28)________________的主要任务是将系统的功能需求分配给软件模块,确定每个模块的功能和调用关系,
下列各进制的整数中,值最小的一个是
Electronicmailhasbeeninwidespreaduseformorethanadecade,simplifyingtheflowofideas,connectingpeoplefromdistant
最新回复
(
0
)