首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下自定义数据类型的语句中,正确的是( )。
以下自定义数据类型的语句中,正确的是( )。
admin
2018-07-11
21
问题
以下自定义数据类型的语句中,正确的是( )。
选项
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
lD 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://jikaoti.com/ti/yYy0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
(1)在名称为Forml的窗体上添加一个名称为Labell、标题为“滚动条控件”的标签,一个名称为HScrolll的水平滚动条。请通过属性窗口设置属性使水平滚动条取值范围的最大值为100,最小值为l,滚动条的高度为300,宽度为3000,滚动块的初始位置为
(1)在名称为Forml,标题为“测试”的窗体上添加一个名称为Framel、标题为“字体”的框架。在框架内再添加两个名称分别为Optl和Opt2、标题分别为“隶书”和“宋体”的单选按钮。程序运行后的窗体如图所示。注意:存盘时必须存放在考生文件夹下,
假定在图片框Picturel中装入了一个图片,在程序运行中,为了清除该图片(注意,清除图片,而不是删除图片框),应采用的正确方法是()。
以下能够触发文本框Change事件的操作是()。
数据库应用系统中的核心问题是()。
(1)在考生文件夹下有一个工程文件sjt3.vbp,程序的功能是,在运行时,如果选中一个或两个复选框和一个单选按钮,则对文本框中的文本内容做相应的设置,如图所示。窗体上的控件已经给出,但没有给出主要程序内容,请编写适当的事件过程,完成上述功能。
以下叙述中正确的是()。
窗体上有一个名称为VScrol11的垂直滚动条,要求程序运行时,滚动块的初始位置在最下端,应该使VScrol11.Value的值等于
在考生文件夹中有一个工程文件sjt5.vbp,如图6所示。运行程序时,从文件中读入矩阵数据并放入二维数组a中。单击“计算”按钮时,将统计矩阵两个对角线的元素中能被3整除的个数,统计结果显示在标签|b|First中;同时计算矩阵主对角线的元素之和,计算结果显
设有关系表学生S(学号,姓名,性别,年龄,身份证号),每个学生学号唯一。除属性学号外,也可以作为键的是
随机试题
最符合持续性室性心动过速的临床表现特点的是
断肢再植术后护理哪项不正确()。
阿米卡星属
某防疫站为了评价不同燃料燃烧对室内空气质量的影响,拟分别测定燃煤、燃气、燃柴家庭室内s02含量,应采用的气体采集法为
我国引起慢性肾功能不全的病因最常见的是( )。
(2011)三相感应电动机定子绕组,丫联结,接在三相对称交流电源上,如果有一相断线,在气隙中产生的基波合成磁动势为()。
在PPS抽样中,采用系统选样方法选取样本时,下列说法中,错误的是()。
Whohasgotapen?
LikePaulJobs,JoanneSchieblewasfromaruralWisconsinfamilyofGermanheritage.Herfather,ArthurSchieble,hadimmigrate
【S1】【S5】
最新回复
(
0
)