有如下语句: Type Student Name As String Age As Integer Sex As String End Type Dim Stu As Student With Stu .Name="张红" .Age=22 .Sex="女" End With 执行Print Stu.Age语句后的结果是
- A张红
- B22
- C“女”
- DAge
有如下语句: Type Student Name As String Age As Integer Sex As String End Type Dim Stu As Student With Stu .Name="张红" .Age=22 .Sex="女" End With 执行Print Stu.Age语句后的结果是
解析:本题重点需理解自定义类型Student以及Student类型的变量Stu的使用。在使用Stu变量时用到了With...End With的结构,在该结构中的语句.Age=22相当于语句Stu. Age=22。故最后执行Print Stu. Age语句的结果值应为22。