柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
以下自定义数据类型的语句中,正确的是( )。
A.Type studentID As String * 20 name As String * 10 age As IntegerEnd student
B.Type student ID As String * 20 name As String * 10 age As IntegerEnd Type
C.Type studentID As String name As String age As IntegerEnd student
D.Type ID As String * 20 name As String * 10 age As IntegerEnd Type student
热度🔥320
参考答案:B
解析:
【解析】自定义数据类型的语法结构是:Type 自定义类型名 <成员名1>[(下标)] As<标准类型名1> <成员名2>[(下标)] As<标准类型名2> ……End Type其中,成员可以定义为定长的或不定长字符串,也可定义为数组。本题中,B选项符合语法规则,故B选项正确。
复制题目向AI提问
content_copy
content_copy
扫码免费计算机二级刷题
2025年计算机等级考试题库
推荐
VBA中一般采用Hungarian符号法命名变量,代表命令按钮的字首码是
有以下程序: #include fun(int x, int y) { static int m=0, i=2; i+=m+1; m=i+x+y; return m; } main() { int j=1, m=1, k; k=fun(j,m); printf("%d,",k); k=fun(j,m); printf("%d\n",k); } 执行后的输出结果是( )。
以下叙述中正确的是
要求如果x被7除余2,则输出x的值,下列语句中不能实现此功能的语句是( )。
软件质量模型中质量特性"可维护性"的子特性包括:易变更性、易测试性、易分析性、可维护性的依从性以及
标签
二级VB程序设计
as
type
string
类型