首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下自定义数据类型的语句中,正确的是( )。
以下自定义数据类型的语句中,正确的是( )。
admin
2015-10-23
28
问题
以下自定义数据类型的语句中,正确的是( )。
选项
A、Type student
ID As String * 20
name As String * 10
age As Integer
End student
B、Type student
ID As String * 20
name As String * 10
age As Integer
End Type
C、Type student
ID As String
name As String
age As Integer
End student
D、Type
ID As String * 20
name As String * 10
age As Integer
End Type student
答案
B
解析
自定义数据类型的语法结构是:
Type 自定义类型名
<成员名1>[(下标)] As<标准类型名1>
<成员名2>[(下标)] As<标准类型名2>
……
End Type
其中,成员可以定义为定长的或不定长字符串,也可定义为数组。
本题中,B选项符合语法规则,故B选项正确。
转载请注明原文地址:https://kaotiyun.com/show/ATLp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设窗体上有一个命令按钮数组,能够区分数组中各个按钮的属性是()。
当用户桉下键盘上的某个键时,将会触发拥有输入焦点的控件的______事件。
执行inputbox函数后,会产生一个对话框,对话框上通常有两个按钮,它们是______按钮和取消按钮。
启动VB6.0默认的工程类型是______。
已知数组A(4,4),各个元素在运行程序时被赋值并打印,形成四除非方阵。请在【】和【】处填处所需的内容,使产生一个转置矩阵(即行列互换),仍放在数组A中,并打印出来。例如:123412341234
为了使图像框适应图片的大小,下边设置正确的属性是
下面关于对象概念的描述中,错误的是
若A=20,B=80,C=70,D=30,则表达式A+B>1600r(B*C>200AndNotd>60)的值是______。
下面有关注释语句的格式,错误的是()。
按"先进后出"原则组织数据的数据结构是【】。
随机试题
缝焊机用的电极也称为滚盘,它的工作面形状有平面和球面两种,滚盘的直径通常在()mm以内。
关于年龄相关性白内障的描述,下面哪项不正确
足少阳胆经主治
《建设工程质量管理条例》规定,建设工程在超过合理使用年限后需要继续使用的,产权所有人依法应当首先进行的程序是()。
上市公司和公司债券上市交易的公司,应当在()起4个月内,向国务院证券监督管理机构和证券交易所报送年度报告,并予公告。
易受暗示者往往容易出现()现象,有时表现为意志力薄弱。
下图中的立体图形①是由立体图形②、③和④组合而成,下列哪一项能够填入问号处?
若.
The______analysisbyH.L.MenckenoftheAmericancharacteroutragedsomeanddelightedothers.
Diditever______youthathecouldbethemurderer?(厦门大学2014年试题)
最新回复
(
0
)