问题
单项选择题
如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。Type Studno As Integername As Stringscore(1 to 3)As SingleEnd Type 若对某个学生的各个数据项进行赋值,下列程序段中正确的是
A.Dim S AS StudStud no=1001 Stud.name=”舒宜” Stud.score=78,88,96
B.Dim S As Stud
S.no=1001
S.name=”舒宜”
S.score=78,88,96
C.Dim S As Stud D)Stud.no=1001Stud.name=”舒宜”Stud.score=78 Stud.score=88Stud.score=96
D.Dim S As Stud
S.no=1001
S.name=”舒宝”
S.score=78
S.score=88
S.score=96
答案
参考答案:D