单选题 以下自定义数据类型的语句中,正确的是______。
  • 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选项正确。