单项选择题
如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制) 组成。
Type Stud
no As Integer
name As String
score(1 to 3) As Single
End Type
若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。
A.Dim S As Stud<br> Stud.no=1001<br> Stud.name=“舒宜” <br> Smd.score=78,88,96
B.Dim S As Stud<br> S.no=1001<br> S.name=“舒宜”<br> S.score=78,88,96
C.Dim S As Smd<br> Smd.no=1001<br> Stud.name=“舒宜”<br> Stud.score(1) =78<br> Stud.score(3) =96<br> Stud.score(2) =88
D.Dim S As Smd<br> S.no=1001<br> S.name=“舒宜”<br> S.score(1) =78<br> S.score(2) =88<br> S.score(3) =96