现有如下包结构:  com |--&ens

题目

现有如下包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  class Test { Alpha a; Beta b; Gamma c; }  哪三个必须加入到类 Test 中,以使其通过编译?()

  • A、package y;
  • B、package com;
  • C、import com.x.*;
  • D、import com.x.y.*
参考答案和解析
正确答案:B,C,D
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Certkiller.comhasamainofficeandabranch&ens

Certkiller.comhasamainofficeandabranchoffice.Certkiller.com’snetworkconsistsofasingleActiveDirectoryforest.SomeoftheserversinthenetworkrunWindowsServer2008andtherestrunWindowsserver2003.

YouaretheadministratoratCertkiller.com.YouhaveinstalledActiveDirectoryDomainServices(ADDS)onacomputerthatrunsWindowsServer2008.Thebranchofficeislocatedinaphysicallyinsecureplace.IthasnotITpersonnelonsiteandtherearenoadministratorsoverthere.YouneedtosetupaRead-OnlyDomainController(RODC)ontheServerCoreinstallationcomputerinthebranchoffice.WhatshouldyoudotosetupRODConthecomputerinbranchoffice()


参考答案:B

第2题:

关于语句packagecom.myschool,叙述错误的是哪一项?()

A.该语句必须出现在类声明语句中classStudent{}之前

B.包名com.myschool对应目录结构com/myschool

C.要想引入该包中的所有类,必须使用importcom.myschool

D.任何类中都必须包括package语句


参考答案:D

第3题:

建立一个主机名为xyz.com.cn、IP地址为123.127.134.30,别名为www.xyz.com.cn的网站时,网站创建向导中输入的信息如下图所示。

访问该网站时,在浏览器地址栏中应输入

A.http://www.xyz.com.cn

B.xyz.com.cn

C.http://123.127.134.30:8080

D.123.127.134.30:8080


正确答案:C

第4题:

YouaretheadministratorofCompany.com’sWindows&ens

YouaretheadministratorofCompany.com’sWindows2000Network.

YourroutedTCP/IPnetworkconsistsof10Windows2000Servercomputersand75Windows2000Professionalcomputers.AllcomputersareintheCompany.comdomain.YournetworkusesTCP/IPastheonlynetworkprotocol.Youareinstalling10newWindows2000Professionalcomputers.Youwanttoenablethenewcomputerstousehostnamestoconnecttosharedresourcesonthenetwork.YouconfigureaTCP/IPaddress,agatewayaddressandasubnetmaskoneachnewcomputer.

Youwanttocompletetheconfigurationtoallowthecomputerstocommunicateonthenetwork.

Whatshouldyoudo?()


参考答案:A, E

第5题:

现有包结构:com|--x||--Alpha.class||||--y||--Beta.class||--Gamma.class和类://insertcodehereimportcom.*;importcom.x.y.*;classTest{Alphaa;Betab;Gammac;}哪两行分别插入后可允许代码编译?()

A.packagecom.;

B.importcom.x;

C.packagecom.x;

D.importcom.x.Alpha;


参考答案:C, D

第6题:

YourcompanyhastwoActiveDirectoryforestsnamed&ens

YourcompanyhastwoActiveDirectoryforestsnamedcontoso.comandfabrikam.com.ThecompanynetworkhasthreeDNSserversnamedDNS1,DNS2,andDNS3.TheDNSserversareconfiguredasshowninthefollowingtable.

Allcomputersthatbelongtothefabrikam.comdomainhaveDNS3configuredasthepreferredDNSserver.

AllothercomputersuseDNS1asthepreferredDNSserver.Usersfromthefabrikam.comdomainareunabletoconnecttotheserversthatbelongtothecontoso.comdomain.Youneedtoensureusersinthefabrikam.comdomainareabletoresolveallcontoso.comqueries.Whatshouldyoudo()


参考答案:C

第7题:

现有如下包结构:com|--x||--Alpha.class||||--y||--Beta.class||--Gamma.class和类:classTest{Alphaa;Betab;Gammac;}哪三个必须加入到类Test中,以使其通过编译?()

A.packagey;

B.packagecom;

C.importcom.x.*;

D.importcom.x.y.*


参考答案:B, C, D

第8题:

Youarecreatinganonlinecatalogapplicationthat&ens

YouarecreatinganonlinecatalogapplicationthatwilldisplayproductinformationonthecompanyWebsite.TheproductdataisstoredinaSQLServer2005database.ThedataisstoredasrelationaldatabutmustbepassedtotheapplicationasanXMLdocumentbyusingFORXML.YoutestyourapplicationandnoticethatnotalloftheitemsmatchingyourqueryappearintheXMLdocument.Onlythoseproductsthathavevaluesforallelementsintheschemaappear.

YouneedtomodifyyourTransact-SQLstatementsothatallproductsmatchingyourqueryappearintheXMLdocument.

Whatshouldyoudo?()


参考答案:B

第9题:

现有如F包结构:com|一一X||一一Alpha.class||||一一yI|一一Beta.class||l--Gamma.class和类:classTest{Alphaa;Betab;Gammac;}哪三个必须加入到类Test中,以使其通过编译?()

A.packagey;

B.packagecom;

C.importcom.x.y.*;

D.importcom.x.*;


参考答案:B, C, D

第10题:

YouareaExamSheetInc.consultantwhousesa&ens

YouareaExamSheetInc.consultantwhousesaWindows2000Professionalportablecomputer.YourdomainuseraccountisamemberofthelocalAdministratorgroup.

Fromyourportablecomputer,youmapadrivetoasharedfoldernamedConsultMerticsona

computernamedServer1.YouconfigureConsultMerticstobeavailableoffline.Whenyoulogoftheportablecomputer,youreceivethefollowingerrormessage.

Youneedtosuccessfullysynchronizetheofflinefiles.Whatshouldyoudo?()


参考答案:D

更多相关问题