niusouti.com

( 14 )设有如下的用户定义类型:Type Studentnumber As Stringname As Stringage As IntegerEnd Type则以下正确引用该类型成员的代码是A ) Student.name = " 李明 "B ) Dim s As Students.name = " 李明 "C ) Dim s As Type Students.name = " 李明 "D ) Dim s As Types.name = " 李明 "

题目

( 14 )设有如下的用户定义类型:

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 = " 李明 "


相似考题
更多“( 14 )设有如下的用户定义类型:Type Studentnumber As Stringname As Stringage As IntegerEnd T ”相关问题
  • 第1题:

    有关赋值运算符重载函数operator =()的返回类型的叙述错误的是()

    A.返回类型为 Type,Type&都可以#B.返回类型为Type,且实现了++操作的重载,则可以如下应用。 Type t1=new Type(), t2; (t2=t1)++; 且后一句相当于 t2=t1; t2++;#C.返回类型为Type,则都可以有如下应用。 Type t1=new Type(), t2, t3; t3=t2=t1;#D.operator =操作重载的返回值可以是Type*
    返回类型为Type,且实现了++操作的重载,则可以如下应用。 Type t1=new Type(), t2; (t2=t1)++; 且后一句相当于 t2=t1; t2++;

  • 第2题:

    4、如果希望想为表单元素类型为type且值为text的元素设置背景色,则用如下方法定义()。

    A.input{type=text}{ }

    B.input[type=text]{ }

    C.input(type=text){ }

    D.input type=text{ }


    BC

  • 第3题:

    以下运用TYPE定义用户数据类型是正确的。 TYPE ST1 ARRAY(0 TO 15) OF STD_LOGIC;


    若已定义了一个数据类型Book,则Book就可以当做变量使用了

  • 第4题:

    18、设有如下枚举类型定义: enum color { red=6, blue=14, yellow, white, black, purple}; 则枚举元素purple的值为_____

    A.3

    B.4

    C.18

    D.20


    【参考答案】本题答案为C选项。

  • 第5题:

    下面有关结构体相关说明正确的是________。 typedef struct date { int year, month, day; } type_date ;

    A.定义了结构体类型名type_date

    B.定义了结构体变量type_date

    C.定义了结构体type_date

    D.这个定义是错误的


    一个结构体变量中可以同时存放其所有成员