网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

请看代码,回答下面的问题。

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’


参考答案

更多 “ 请看代码,回答下面的问题。TypeTMammal=ClassProcedure Walk;…..end;{end of TManmml}procedure TMammal.Walk;beginShowMessage(‘Result is Mammal Walk’);end;TDog=Class(TMammal)Procedure Walk;end;procedure TDog.Walk;beginShowMessage(‘Result is Dog Walk’);end;varMammal:TMammal;dog:TDog;beginMammal:=TDog.Create;Mammal.Walk;Mammal.Free;end;上面代码中,最后的输出结果是:( )A.‘Result is Dog Walk’B.‘Result ia Mannal Walk’ ” 相关考题
考题 The _____ specification delineates specific end use capabilities which can be tested in the acceptance procedure.A performanceB functionalC technicalD base lineE operational

考题 设在工程中定义了下列类型: 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

考题 Which traversal method for a binary tree does the following Pascal code illustrate? Procedure traverse(p:pointer); Begin IfpNIL Then begin Traverse (p^.left); Process(p); Traverse(p^.right) End; End_A.pre_orderB.middle_orderC.noneD.last_order

考题 以下能正确定义数据类型TelBook的代码是_________。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.TypedefTelBook NameString*10 TelNum Integer End Type

考题 以下能正确定义数据类型TelBook的代码是A.TypeTelBook Name As String*10 TelNum As Integer EndTypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer EndTypeTelBookD.Typedef TelBook Name String*10 TelNum Integer End Type

考题 以下能正确定义数据类型TelBook的代码是 ______。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNun As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.TypedefTelBook Name String*10 TelNum Integer End Type

考题 设在工程中定义了如下类型: 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 SubB.Sub Command1_Click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubC.Sub Command1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubD.Sub Command1_click() Dim student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End student End Sub

考题 要建立一个随机文件记录学生的信息,如下定义了学生的记录类型,由学号、姓名、5门课程成绩(百分制)组成,下列的定义正确的是( )。A.Type sru no As Integer name As String score(1 To 5)As Single End TypeB.Type stu no As Integer name As String*10 score()As Single End TypeC.Type stu no As Integer name As String*10 score(1 To 5)As Single End TypeD.Type stu no As Integer name As String score()As Single End Type

考题 设在工程中定义了下列类型:Type Stutypeino As Integerstrname As String*20strsex As String*1smark As SingleEnd Type在窗体上正确使用这个类型的是下列哪个操作( )。A.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname=smith .strsex=男 .smark=89 End With End SubB.Sub Command1_Click() Dim Student As Stutype With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubC.Sub Comnland1_Click() Dim student As Stutype With Stutype .ino=12 .strname="smith" .strsex="男" .smark=89 End With End SubD.Sub Command1_Click() Dim student As Stutype With student .ino=12 .Strname="smith" .strsex="男" .smark=89 End student End Sub

考题 写出下列程序代码运行的结果【】。 include class A{public:virtual void disp() {cout 写出下列程序代码运行的结果【 】。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():}

考题 下列数据类型定义中,正确的是A.Type Student Num As Long Name As String End TypeB.Type Student Num As Integer Name As String * 10 End TypeC.Private Type Num As Long Score As Single End TypeD.Private Type Student Name As String Score(10)As String * 10 End Type

考题 要建立一个随机文件记录学生的信息,下列定义了学生的记录类型,由学号、姓名、五门课程成绩(百分制)组成,下列的定义正确的是( )。A.Type stu no As Integer name As String score(1 To 5)As Single End TypeB.Type stu no As Integer name As String*10 score()As Single End TypeC.Type stu no As Integer name As String*10 score(1 To 5)As Single End TypeD.Type stu no As Integer name As String score()As Single End Type

考题 以下能正确定义数据类型TelBook的代码是______。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum AS Integer End TelBookC.Type TelBook Name String*10 TelNum Integer End Type TelBookD.Typedef TelBook NameString*10 TelNum Integer EndType

考题 第三题:请看如下代码%TestString="Test"TestATestBResponse.write TestStringSub TestA()TestString="TestA"End SubSub TestB()Dim TestStringTestString="TestB"End Sub%这段代码执行后,运行结果是什么?并解释一下为什么?

考题 以下能正确定义数据类型TelBook的代码是( )。A.Type TelBook Name As String*10 TelNum As Integer End TypeB.Type TelBook Name As String*10 TelNum As Integer End TelBookC.Type TelBook Name String*10 TelNum Integer. EndType TelBookD.Typedef TelBook Name String*10 TelNum Integer End Type

考题 下面程序输出的结果为 #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 BB.CLASS A CLASS B CLASS BC.CLASS A CLASS B CLASS A CLASS BD.CLASS A CLASS B CLASS B CLASS B

考题 请判断下列代码在程序关闭时,正确的对象释放顺序TMybutton=class(Tbutton)ProtectedDestructor Destroy;override;End;…………destructor TMyButton.Destroy;Begininherited;Application.MessageBox(PChar(Name),’Destroy’,mb_ok);end;var AButton,BButton:TMyButton;procedure TForm1.FormCreate(Sender:TObject);beginAbutton:=TmyButton.Create(Nil);With AButton dobeginParent:=form1;Top:=100;Left:=100;Visible:=True;Name:=’ABtn’;end;BButton:=TMyButton.Create(Application);With BButton dobeginParent:=Form1;Top:=100;Left:=200;Visible:=True;Name:=’BBtn’;end;procedure TForm1.FormDestroy(Sender:TObject);begin…………end;A.BButton.Destroy-Form1.Destroy-AButton.DestroyB.上述都不对,应该手工调用 Abutton.free,否则会造成AButton没有释放的错误C.Form1.Destroy-AButton.Destroy-BButton.DestroyD.AButton.Destroy-Form1.Destroy-BButton.Destroy

考题 Which traversal method for a binary tree does the following Pascal code illustrate? procedure traverse (p:pointer); begin if pnil then begin traverse(p ↑ .left); process(p); traverse(p ↑ .right); end end;A.preorderB.postorderC.reorderD.inorder

考题 End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()A、 IP precedenceB、 type of service (ToS)C、 class of service (CoS)D、 differentiated services code point (DSCP)

考题 Given a Cisco Unified Computing System, which is a valid port type in end-host mode?()A、 ServerB、 End deviceC、 NodeD、 HostE、 Virtual

考题 尽端铁路枢纽 stub-end type railway terminal

考题 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?()A、 The command will be executed successfully.B、 The command will fail because RESOURCE_CONSUMER_GROUP is an invalid parameter in the  DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.C、 The command will fail because LOGGING_LEVEL is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.D、 The command will fail because LOG_HISTORY is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.E、 The command will fail because 1200 is an invalid value for the LOG_HISTORY parameter in the  DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.

考题 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?()A、 Class MyDictionary Implements Dictionary (Of String,String)B、 Class MyDictionary Inherits HashTableC、 Class MyDictionary Implements IDictionaryD、 Class MyDictionary End Class Dim t as New Dictionary (Of String, String) Dim dict As MyDIctionary= CType (t,MyDictionary)

考题 单选题Given a Cisco Unified Computing System, which is a valid port type in end-host mode?()A  ServerB  End deviceC  NodeD  HostE  Virtual

考题 单选题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?()A  The command will be executed successfully.B  The command will fail because RESOURCE_CONSUMER_GROUP is an invalid parameter in the  DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.C  The command will fail because LOGGING_LEVEL is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.D  The command will fail because LOG_HISTORY is an invalid parameter in the DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.E  The command will fail because 1200 is an invalid value for the LOG_HISTORY parameter in the  DBMS_SCHEDULER.CREATE_JOB_CLASS procedure.

考题 单选题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?()A  Class MyDictionary Implements Dictionary (Of String,String)B  Class MyDictionary Inherits HashTableC  Class MyDictionary Implements IDictionaryD  Class MyDictionary End Class Dim t as New Dictionary (Of String, String) Dim dict As MyDIctionary= CType (t,MyDictionary)

考题 单选题End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()A  IP precedenceB  type of service (ToS)C  class of service (CoS)D  differentiated services code point (DSCP)