单选题 VB
题号 #483476

以下能正确定义数据类型TelBook的代码是
A.Type TelBook
Name As String*10
TelNum As Integer
End Type
B.Type TelBook
Name As String*10
TelNum As Integer
End TelBook
C.Type TelBook
Name String*10
TelNum Integer
End Type TelBook
D.Typedef TelBook
Name String*10
TelNum Integer
End Type

进入在线模考

参考答案

A

答案解析

Type语句用于定义包含一个或多个元素的用户自定义的数据类型,其格式如下:
Type类型名
元素1 As数据类型
元素2 As数据类型
……
End Type
所以,答案是A。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考