首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下自定义数据类型的语句中,正确的是
以下自定义数据类型的语句中,正确的是
admin
2020-01-02
60
问题
以下自定义数据类型的语句中,正确的是
选项
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 Intege rEnd 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语句用于在模块级别中定义一个用户自己的数据类型,其本质上是一个数据类型集合,它含有一个或一个以上的元素,每个元素可以被定义为不同的数据类型。自定义类型中的元素可以是变长字符串,也可以是定长字符串。但在随机文件中使用时,必须使用定长字符串,一般格式为:String*常数。其中,“常数”是用于指定字符串长度的数。
转载请注明原文地址:https://jikaoti.com/ti/hgx0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
如果要将一个窗体从内存中清除,应使用的语句是
以下叙述中正确的是
在窗体上画一个命令按钮,名称为Commandl,然后编写如下代码:OptionBase0PrivateSubCommandl_Click()DimA1(4)AsInteger,A2(4)AsInteger
窗体上有一个名称为Command1的命令按钮,单击该按钮时所实现的功能是产生10个随机整数,然后从键盘输入一个整数,查找该数在数组中的位置。若找到,输出该数的位置;若没有找到,给出相应的提示。该命令按钮的单击事件过程如下:PrivateSub
某人编写了下面的程序,希望能把Textl文本框中的内容写到out.txt文件中PPrivateSubCommandl_Click()Open”out.txt”ForOutputAs#2Print”Text”
下面关于VB应用程序的叙述中正确的是
以下关于VB特点的叙述中,错误的是
设栈的顺序存储空间为S(1:m),初始状态为top=0。现经过一系列正常的入栈与退栈操作后,top=m+1,则栈中的元素个数为()。
设数据结构B=(D,R),其中D={a,b,c,d,e,f}R={(f,a),(d,b),(e,d),(c,e),(a,c)}该数据结构为()。
在长度为n的有序线性表中进行二分查找,最坏情况下需要比较的次数是()。
随机试题
哪项不是慢淋白血病性淋巴细胞的特点
二相气雾剂为
A.腮腺B.下颌下腺C.舌下腺D.唇腺E.腭部小涎腺涎石病90%以上发生于
女性,32岁。结婚5年未孕,月经规则,自觉胸脘痞闷,带下量多、色白、质黏,舌苔白腻,脉细滑。妇科检查:子宫如孕2个月大小,宫底部明显突出,质硬,B超检查为单个结节,血红蛋白90g/L。应首选的治疗措施是
单位工程施工组织设计由承担施工任务的单位负责编制,吸收建设单位、设计部门参加,由()审批。
根据行政许可的不同性质和功能,行政许可可以分为普通许可、特许、认可、核准和登记,下列各项中,应采用“特许”的是()。
德生公司注册资本为2000万元。2005年按同期金融机构贷款利率从其关联方——德民公司借款1200万元,发生借款利息72万元。该公司在计算企业所得税应纳税所得额时,准予扣除的利息金额为()万元。
(单选题)“激情平昌,和谐世界”,2月()20时,第二十三届冬季奥林匹克运动会在韩国平昌开幕。
美国联邦所得税是累进税,收入越高,税率越高。美国有的州还在自己管辖的范围内,在绝大部分出售商品的价格上附加7%左右的销售税。如果销售税也被视为所得税的一种形式的话,那么这种税收是违背累进原则的:收入越低,税率越高。以下哪项,如果为真,最能加强题干
下列关于线性链表的叙述中,正确的是
最新回复
(
0
)