( 13 )有如下用户定义类型及操作语句:Type StudentSNo As StringSName As StringSAge As IntegerEnd TypeDim Stu As StudentWith Stu. SNo = "200609001 ”.SName = ” 陈果果 ”.Age 二 19End With执行 MsgBox Stu.Age 后,消息框输出结果是 【 13 】 。

题目

( 13 )有如下用户定义类型及操作语句:

Type Student

SNo As String

SName As String

SAge As Integer

End Type

Dim Stu As Student

With Stu

. SNo = "200609001 ”

.SName = ” 陈果果 ”

.Age 二 19

End With

执行 MsgBox Stu.Age 后,消息框输出结果是 【 13 】 。


相似考题
更多“( 13 )有如下用户定义类型及操作语句:Type StudentSNo As StringSName As StringSAge As Integer ”相关问题
  • 第1题:

    有如下用户定义类型及操作语句: Tyoe Student SNo As String Sname As String SAge As Integer End Type Dim Stu As Student With Stu SNo=”200609001” SName=”陈果果“ A ge=19 End With 执行MsgBox Stu,Age 后,消息框输出结果是 【13】


    正确答案:
    19

  • 第2题:

    在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该()

    A.type array arr_type[emp.ename%type] index by binary_integer;

    B.type table arr_type[emp.ename%type] index by binary_integer;

    C.type arr_type is table of emp.ename%type index by binary_integer;

    D.type arr_type is pl_sql table of emp.ename%type index by binary_integer;


    参考答案:C

  • 第3题:

    在随机文件操作中,定义记录类型的语句()。

    A.Type…End Type

    B.Dim

    C.Private

    D.Public


    Type…End Type

  • 第4题:

    设有如下语句: Dim a,b As Integer c="VisualBasic" d=#7/20/2005# 以下关于这段代码的叙述中,错误的是( )。

    A.a被定义为Integer类型变量

    B.b被定义为Integer类型变量

    C.c中的数据是字符串

    D.d中的数据是日期类型


    正确答案:A

  • 第5题:

    有如下用户定义类型及操作语句:

    执行MsgBox Stu.Name后,消息框输出结果是__________。


    正确答案:
    高强 【解析】本题考查自定义数据类型的知识。此题先使用Type语句定义一个自定义数据类型,在这个数据类型中有3个分量:学号、姓名和年龄。然后使用此自定义类型定义了一个变量,接下来使用With