更多"有如下用户定义类型及操作语句: Type Teacher TNo "的相关试题:
[填空题]有如下用户定义类型及操作语句:
Type Teacher
TNo As String
TName As String
IAge As Integer
End Type
Dim Tea As Teacher
With Tea
.TNo="20080001"
.TName="张三"
.IAge=32
End With
执行MsgBox Tea. TName后,消息框输出结果是 (14) 。
[填空题]有如下用户定义类型及操作语句:
Type Teacher
TNo As String
TName AS Strxng
IAge As Integer
End Type
Dim Tea AS Teacher
With Tea
.TNO="20080001"
.TName="张三"
.IAge=32
End With
执行MsgBox Tea.TNaiqle后,消息框的输出结果是______。
[填空题]有如下用户定义类型及操作语句:
Type Student
SNo As String
SName As String
IAge As Integer
End Type
Dim StuAs Student
With Stu
SNo="200609001"
SName="陈果果"
IAge=19
End With
执行MsgBox Stu.IAge后,消息框输出结果是【 】。
[填空题]有如下用户定义类型及操作语句:
Type Student
SNo As String
Sname As String
SAge As Integer
End Type
Dim Stu As Student
With Stu
.SNo="200609001"
.SName="陈果果"
.SAge=19
End Wifh
执行MsgBox Stu.SAge后,消息框输出结果是______。
[填空题]有如下用户定义类型及操作语句:
Type Student
SNo As String
SName As String
IAge As Integer
End Type
Dim Stu As Student
With Stu
.SNo="200609001"
.SName="陈果果"
.IAge=19
End With
执行MsgBox Stu. IAge后,消息框输出结果是______。
[填空题]有如下用户定义类型及操作语句:
Type Student
Sno As String
Sname As String
Sage As Integer
End Type
Dim Stru AS Student
With Stu
.SNO="200609001"
.Shame="陈果果"
.Abe=19
End With
执行MsgBox Stu.Age后,消息框的输出结果是______。
[填空题]有如下用户定义类型及操作语句:
Type Student
No As String
Name As String
Age As Integer
End Type
Dim Stu As Student
With Stu
.No="200801001"
.Name="高强"
.Age=23
End With
执行MsgBox Stu.Name后,消息框输出结果是______。
[单项选择]若在窗体模块的声明部分声明了如下自定义类型和数组
Private Type rec
Code As Integer:Caption As String
End Type
Dim arr(5) As rec
则下面的输出语句中正确的是
A. Print arr.Code(2), arr.Caption(2)
B. Print arr.Code, arr.Caption
C. Print arr(2).Code, arr(2).Caption
D. Print Code(2), Caption(2)
[单项选择]有如下类定义和变量定义:
class Parents
public:
int publicData:
private:
int privateData;
;
class ChildA:public Parents/类体略*/;
class ChildB:private Parents/类体略*/;
ChildA a;
ChildB b;
下列语句中正确的是
A. cout<<a.publicData<<endl;
B. cout<<a.privateData<<endl;
C. cout<<b.publieData<<endl;
D. eout<<b.privateData<<endl;
[判断题]用户从基类创建的子类属于用户定义类。用户定义类只能是子类,而不能是父类。
[填空题]IBM DB2对关系型数据库进行面向对象的支持,主要包括:用户定义数据类型(UDT)、用户定义函数(UDF)和大对象(LOB) ,形成新一代【 】数据库系统。