设在工程中定义了下列类型: Type Stutype ino As Integer strname As String*20 Strsex As String*1 Smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作 A. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname=smith .strsex=男 .smark=89 End With End Sub B. Sub C

题目

设在工程中定义了下列类型: Type Stutype ino As Integer strname As String*20 Strsex As String*1 Smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作 A. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname=smith .strsex=男 .smark=89 End With End Sub B. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub C. Sub Command1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub D. Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End student End Sub


相似考题
更多“设在工程中定义了下列类型: Type Stutype ino As Integer strname As String*20 Strsex As Strin ”相关问题
  • 第1题:

    设在工程中定义了下列类型:

    Type Stutype

    ino As Integer

    strname As String*20

    strsex As String*1

    smark As Single

    End Type

    在窗体上正确使用这个类型的是下列哪个操作( )。

    A.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname=smith .strsex=男 .smark=89 End With End Sub

    B.Sub Command1_Click() Dim Student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub

    C.Sub Comnland1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End Sub

    D.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname="smith" .strsex="男" .smark=89 End student End Sub


    正确答案:B
    解析:本题考查为记录类型变量student赋值。使用With语句可以对某个对象执行一系列的语句,而不用重复指出对象的名称。其语法如下:
    With记录类型变量
    .记录类型变量成员名=要赋的值

    End With
    给记录类型变量中的字符串型成员赋值时要加双引号。

  • 第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题:

    定义名为“联系方式”的属性组,该属性组包含两个名称分别为“邮箱”和“电话”的属性,这两个属性的类型均为"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"/> <


    B 解析:实体联系模型中,联系指的是实体之间的联系,实体之间的联系有一对一、一对多和多对多3种。如:一个公司有一个经理,而每个经理只在一个公司任职,则公司与经理之间是一对一联系;一个公司有多个副经理,而每个副经理只在一个公司任职,则公司与副经理之间是一对多联系;一个老师可以有多个学生,而一个学生也可以有多个老师,则老师与学生之间是多对多的联系。联系可以同一个或多个实体有关。利用ER模型进行数据库的概念设计,分为3步:第1步设计局部的ER模型;第2步综合各个局部ER模型成为全局的ER模型;第3步对全局的ER模型进行优化,得到最终的ER模型。ER模型向关系模式的转换依据:把一个实体类型转移为一个关系模式,相应实体的属性转换为对应的关系的属性,实体的键是关系的键;把一个联系类型转换为一个关系模式,所有与该联系相关的实体的键及联系的属性转换成关系的属性,关系模式的键由实体与实体之间的联系所决定。

  • 第4题:

    设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。

    A.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 . strname = smith .strsex = .smark = 89 End With End Sub

    B.Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 .strname = "smith" .strscx = "男" .smark = 89 End With End Sub

    C.Sub Commandl_Click0 Dim student As Stutype With Stutype ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End With End Sub

    D.Sub Command1 _Click() Dim student As Stutype With student .ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End student End Sub


    正确答案:B
    解析:本题考查为记录类型变量student赋值。使用With语句可以对某个对象执行一系列的语句,而不用重复指出对象的名称。其语法如下:
    With记录类型变量
    .记录类型变量成员名;要赋的值

    End With
    给记录类型变量中的字符串型成员赋值时要加双引号。

  • 第5题:

    有如下结构体说明,以下叙述中错误的是()。 struct stu { int a; float b; } stutype;

    A.struct是结构体类型的关键字

    B.struct stu是用户定义的结构体类型

    C.stutype是用户定义的结构体类型名

    D.a和b都是结构体成员名


    结构体类型不可以嵌套