设有如下的记录类型
Type Student
numberAs string
name As String
age As Integer
End Type
则正确引用该记录类型变量的代码是( )。
A. Student.name="张红"
B. Dim s As Student
s.name="张红"
C. Dim s As Type Student
D. Dim s As Type
s.name="张红" s.Dame="张红"
第1题:
设有如下的记录类型: Type Student Number As String Name As String Age As Integer End Sub 则能正确引用该记录类型变量的代码是( )。
A.Student.name=""
B.Dim s As Students.name=“张红”
C.Dims As Tye Students.name=“张红”
D.DimsAsTypes.name=“张红”
第2题:
设有如下的记录类型: Type Student number As String name As String age As Integer End Type 则正确引用该记录类型变量的代码是______。
A.StUdent.name=""
B.Dim s As StUdent s.name="张红"
C.Dim s As Type Student s.name="张红"
D.Dim s As Type s.name="张红"
第3题:
定义名为“联系方式”的属性组,该属性组包含两个名称分别为“邮箱”和“电话”的属性,这两个属性的类型均为"string",下面正确的选项为()。
A.<attributeGroup name="联系方式"> <attribute name="邮箱" type="xsd:string"/> <attribute name="电话" type=“xsd:string"/> </attributeGroup>
B.<attributeGroup name="联系方式"> <attribute name="邮箱" type="xsd:sting"> <attribute name="电话" type=“xsd:sting"> </attributeGroup>
C.<attribute name="联系方式"> <attribute name="邮箱" type="xsd:sting"/> <attribute name="电话" type=“xsd:sting"/> <
第4题:
要求:
1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scroe 和 Course
是多对 1 的关系。
Student
-id: String
-name: String
-birthday: Date
-address: String
-phone: String
-email: String
Score
-student: Student
-course: Course
-grade: float
Course
-id: String
-name: String
-description: String
第5题:
2、假设student是一个含有name与age属性的结构体,如何调用学生的年龄信息? struct Student{ char name[20]; int age; }
A.student.age
B.student->age
C.student[age]
D.student(age)