请看代码,回答下面的问题。
Type
TMammal=Class
Procedure Walk;
…..
end;{end of TManmml}
procedure TMammal.Walk;
begin
ShowMessage(‘Result is Mammal Walk’);
end;
TDog=Class(TMammal)
Procedure Walk;
end;
procedure TDog.Walk;
begin
ShowMessage(‘Result is Dog Walk’);
end;
var
Mammal:TMammal;
dog:TDog;
begin
Mammal:=TDog.Create;
Mammal.Walk;
Mammal.Free;
end;
上面代码中,最后的输出结果是:( )
A.‘Result is Dog Walk’
B.‘Result ia Mannal Walk’
第1题:
以下能正确定义数据类型TelBook的代码是
A.TypeTelBook Name As String*10 TelNum As Integer EndType
B.Type TelBook Name As String*10 TelNum As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer EndTypeTelBook
D.Typedef TelBook Name String*10 TelNum Integer End Type
第2题:
设在工程中定义了如下类型: Type stutype ino As Integer stmame As String*20 strsex As String*1 smark As Single End Type 在窗体上正确使用这个类型的是下列哪个操作( )。
A.Sub Command1_click() Dimstudent 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
第3题:
设在工程中定义了下列类型:
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
第4题:
下列数据类型定义中,正确的是
A.Type Student Num As Long Name As String End Type
B.Type Student Num As Integer Name As String * 10 End Type
C.Private Type Num As Long Score As Single End Type
D.Private Type Student Name As String Score(10)As String * 10 End Type
第5题:
以下能正确定义数据类型TelBook的代码是______。
A.Type TelBook Name As String*10 TelNum As Integer End Type
B.Type TelBook Name As String*10 TelNum AS Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer End Type TelBook
D.Typedef TelBook NameString*10 TelNum Integer EndType
第6题:
以下能正确定义数据类型TelBook的代码是( )。
A.Type TelBook Name As String*10 TelNum As Integer End Type
B.Type TelBook Name As String*10 TelNum As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer. EndType TelBook
D.Typedef TelBook Name String*10 TelNum Integer End Type
第7题:
请判断下列代码在程序关闭时,正确的对象释放顺序
TMybutton=class(Tbutton)
Protected
Destructor Destroy;override;
End;
…………
destructor TMyButton.Destroy;
Begin
inherited;
Application.MessageBox(PChar(Name),’Destroy’,mb_ok);
end;
var AButton,BButton:TMyButton;
procedure TForm1.FormCreate(Sender:TObject);
begin
Abutton:=TmyButton.Create(Nil);
With AButton do
begin
Parent:=form1;
Top:=100;
Left:=100;
Visible:=True;
Name:=’ABtn’;
end;
BButton:=TMyButton.Create(Application);
With BButton do
begin
Parent:=Form1;
Top:=100;
Left:=200;
Visible:=True;
Name:=’BBtn’;
end;
procedure TForm1.FormDestroy(Sender:TObject);
begin
…………
end;
A.BButton.Destroy->Form1.Destroy->AButton.Destroy
B.上述都不对,应该手工调用 Abutton.free,否则会造成AButton没有释放的
错误
C.Form1.Destroy->AButton.Destroy->BButton.Destroy
D.AButton.Destroy->Form1.Destroy->BButton.Destroy
第8题:
End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()
第9题:
尽端铁路枢纽 stub-end type railway terminal
第10题:
You work as the application developer at Hi-Tech.com. You create a new custom dictionary named MyDictionary. Choose the code segment which will ensure that MyDictionary is type safe?()
第11题:
The command will be executed successfully.
The command will fail because RESOURCE_CONSUMER_GROUP is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.
The command will fail because LOGGING_LEVEL is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.
The command will fail because LOG_HISTORY is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.
The command will fail because 1200 is an invalid value for the LOG_HISTORY parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.
第12题:
IP precedence
type of service (ToS)
class of service (CoS)
differentiated services code point (DSCP)
第13题:
以下能正确定义数据类型TelBook的代码是 ______。
A.Type TelBook Name As String*10 TelNum As Integer End Type
B.Type TelBook Name As String*10 TelNun As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer End Type TelBook
D.TypedefTelBook Name String*10 TelNum Integer End Type
第14题:
要建立一个随机文件记录学生的信息,如下定义了学生的记录类型,由学号、姓名、5门课程成绩(百分制)组成,下列的定义正确的是( )。
A.Type sru no As Integer name As String score(1 To 5)As Single End Type
B.Type stu no As Integer name As String*10 score()As Single End Type
C.Type stu no As Integer name As String*10 score(1 To 5)As Single End Type
D.Type stu no As Integer name As String score()As Single End Type
第15题:
写出下列程序代码运行的结果【 】。
include<iostream.h>
class A{
public:
virtual void disp() {cout<<" calss A!" <<(end1;}
}:
class B: public A{
public:
void disp() {cout<<" class B! " <<end1:}
};
class C: public A{
public:
void disp() {cout<<"class C! " (<end1;}
};
void main() {
A a, *ptr;
B b;
C c;
a. disp();
b. disp();
c. disp();
ptr=&b;
ptr->disp();
ptr=&c;
ptr->disp():
}
第16题:
要建立一个随机文件记录学生的信息,下列定义了学生的记录类型,由学号、姓名、五门课程成绩(百分制)组成,下列的定义正确的是( )。
A.Type stu no As Integer name As String score(1 To 5)As Single End Type
B.Type stu no As Integer name As String*10 score()As Single End Type
C.Type stu no As Integer name As String*10 score(1 To 5)As Single End Type
D.Type stu no As Integer name As String score()As Single End Type
第17题:
第三题:请看如下代码
<%
TestString="Test"
TestA
TestB
Response.write TestString
Sub TestA()
TestString="TestA"
End Sub
Sub TestB()
Dim TestString
TestString="TestB"
End Sub
%>
这段代码执行后,运行结果是什么?并解释一下为什么?
第18题:
下面程序输出的结果为 #include" iostream.h" class A { public: A( ) { cout < < "CLASS A" < < end1;} ~ A( ) { } }; class B:public A { public: B( ){ cout < < "CLASS B" < < end1;} ~ B( ) { } }; void main( ) { A * p; p=new B; B * q;
A.CLASS A CLASS B
B.CLASS A CLASS B CLASS B
C.CLASS A CLASS B CLASS A CLASS B
D.CLASS A CLASS B CLASS B CLASS B
第19题:
Which traversal method for a binary tree does the following Pascal code illustrate? procedure traverse (p:pointer); begin if p<>nil then begin traverse(p ↑ .left); process(p); traverse(p ↑ .right); end end;
A.preorder
B.postorder
C.reorder
D.inorder
第20题:
Given a Cisco Unified Computing System, which is a valid port type in end-host mode?()
第21题:
You are creating a job class. You have issued the following command to create the job class: SQL> BEGIN DBMS_SCHEDULER.CREATE_JOB_CLASS( JOB_CLASS_NAME => ’LOW_PRIORITY_CLASS’, RESOURCE_CONSUMER_GROUP => ’LOW_GROUP’, LOGGING_LEVEL => DBMS_SCHEDULER.LOGGING_FULL, LOG_HISTORY => 1200, COMMENTS => ’LOW JOB PRIORITY CLASS’); END; SQL> / What will be the result of the above command?()
第22题:
Server
End device
Node
Host
Virtual
第23题:
Class MyDictionary Implements Dictionary (Of String,String)
Class MyDictionary Inherits HashTable
Class MyDictionary Implements IDictionary
Class MyDictionary End Class Dim t as New Dictionary (Of String, String) Dim dict As MyDIctionary= CType (t,MyDictionary)