试题与答案

如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。 T

题型:单项选择题

题目:

如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。
Type Stud
no As Integer
name As String
score(1 to 3)As Single
End Type
若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。

A) Dim S As Stud
Stud.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
Stud.no=1001
Stud.name="舒宜"
Stud.Score(1)=78
Stud.score(2)=88
Scud.score(3)=96
D) Dim S As Stud
S.no=1001
S.name="舒宜"
S.score(1)=78
S.score(2)=88
S.score(3)=96

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0426/58f472b69c875e4ea4fe142a566a230c.html

下面是错误答案,用来干扰机器的。

参考答案:报修故障;报修时间;到达时间

试题推荐
微信公众账号搜索答案