题目内容:
如下程序段定义了一个记录有关计算机系统的信息的用户定义类型:Type SystemInfo
VideoColors As Integer
Cost As Currency
DiskDrives(1 to 2)As String
EndType
若对某个计算机系统信息的各数据项进行赋值,下列程序段正确的是( )。
A.
Dim S As Systemlnfo
Systemlnf0.VideoColors=201
Systemlnf0.Cost=234.5
Systemlnf0.DiskDrives=“1.44 MB”__”100M SCSI”
B.
Dim S As Systemlnfo
S.VideoColors=201
S.Cost=234.5
S.DiskDrives(1)=“1.44 MB”
S.DiskDrives(2)=”100M SCSI”
C.
Dim S As Systemlnfo
S.VideoColors=201
S.Currency=234.5
S.DiskDrives=“1.44 MB”__,“100M SCSI”
D.
Dim S As Systemlnfo
Systemlnfo.VideoColors=201
Systemlnfo.Cost=234.5
Systemlnfo.DiskDrives(0)=”__1.44 MB”
Systemlnfo.DiskDrives(1)=“____100M SCSI”
参考答案:
答案解析: