未知题型
Giventhefollowingcode,whichcodefragments,wheninsertedattheindicatedlocation,willsucceedinmakingtheprogramdisplayabuttonspanningthewholewindowarea?()importjava.awt.*;publicclassQ1e65{publicstaticvoidmain(Stringargs[]){Windowwin=newFrame();Buttonbut=newButton("button");//insertcodefragmentherewin.setSize(200,200);win.setVisible(true);}}
A.win.setLayout(newBorderLayout());win.add(but);
B.win.setLayout(newGridLayout(1,1));win.add(but);
C.win.setLayout(newBorderLayout());win.add(but,BorderLayout.CENTER);
D.win.add(but);
E.win.setLayout(newFlowLayout());win.add(but);
- A.awt.*;publicclassQ1e65{publicstaticvoidmain(Stringargs[]){Windowwin=newFrame();Buttonbut=newButton("button");//insertcodefragmentherewin.setSize(200,200);win.setVisible(true);}}
A.win.setLayout(newBorderLayout());win.add(but);
B.win.setLayout(newGridLayout(1,1));win.add(but);
C.win.setLayout(newBorderLayout());win.add(but,BorderLayout.CENTER);
D.win.add(but);
E.win.setLayout(newFlowLayout());win.add(but);
【参考答案】
A, B, C, D
点击查看答案
相关考题
- 未知题型 WritealineofcodethatdeclaresavariablenamedlayoutoftypeLayoutManagerandinitializesitwithanewobject,whichwhenusedwithacontainercanlayoutcomponentsinarectangulargridofequal-sizedrectangles,3componentswideand2componentshigh.()
- 未知题型 Whichstatementsaretrueconcerningtheeffectofthe>>and>>>operators?()
- 未知题型 VNFM(VNF manager)负责生命周期管理,基本能力包括网元VM的()
- 未知题型 ExaminethefollowingstatementthatisusedtomodifytheprimarykeyconstraintontheSALEStable:SQL>ALTERTABLESALESMODIFYCONSTRAINTpkDISABLEVALIDATE;Whichthreestatementsaretrueregardingtheabovecommand()
- 未知题型 YouwanttomigrateyourexistingnonASMfilestoASMfilesforthedatabasePROD.Whichmethodorcommandwouldyouusetoaccomplishthistask?()
- 未知题型 Evaluatethefollowingcommandanditsoutput:SQL>SELECT*FROMdba_temp_free_space;TABLESPACE_NAMETABLESPACE_SIZEALLOCATED_SPACEFREE_SPACELMTEMP250609664101048576149561088Whichtwostatementscorrectlyinterprettheoutput?()A.FREE_SPACEindicatesonlythespacethatiscurrentlyunallocated.B.ALLOCATED_SPACEindicatesonlythespacecurrentlyallocatedandinuse.C.FREE_SPACEindicatesonlythespacethatiscurrentlyallocatedandavailableforreuse.D.ALLOCATED_SPACEindicatesboththespacecurrentlyallocatedandused,andthespacethat isavailableforreuse.E.FREE_SPACEindicatesboththespacethatiscurrentlyallocatedandavailableforreuse,andthespacethatiscurrentlyunallocated.
- 未知题型 Youdecidedtoconfiguretheflashrecoveryareainyourdatabasetocentralizethestorageofalltherecoveryfilesinacertainlocationondisk.Whichtwoparameterswillyouspecifyintheinit.orafile?()
- 未知题型 YouexecutedthefollowingcommandtocreateatablespacecalledSALES_DATA:>CREATETABLESPACEsales_dataDATAFILESIZE100MSEGMENTSPACEMANAGEMENTAUTO;WhichtwostatementsaretrueabouttheSALES_DATAtablespace()
- 未知题型 Identifythetwosituationsinwhichyouusethealertlogfileinyourdatabasetocheckthedetails.()
- 未知题型 YouaretheDatabaseAdministrator(DBA)ofyourcompany.YouexecutethefollowingstatementonanOracle10ginstance:SQL>ALTERSYSTEMSWITCHLOGFILE;Whichtwotasksareperformedwhenthestatementisexecuted?()
- 未知题型 WhichtwostatementsaretrueabouttherolesintheOracledatabase?()
- 未知题型 InwhichsituationswilltheASMmetadatabackuphelpyourecovertheASMdiskinadiskgroup?()
- 未知题型 Thecurrenttimezoneforoneoftheusersessionsissettothedatabaselocaltimezone.Foroneapplication,theusersessionrequiresthetimezonetobesettothelocaloperatingsystemtimezonewithoutaffectingotherusersessions.Whichtwosolutionscouldtheuserimplementtoachievethisobjective?()A.usetheALTERSYSTEMcommandtochangethetimezoneB.usetheALTERSESSIONcommandtochangethetimezoneC.usetheALTERDATABASEcommandtochangethetimezoneD.setthevaluefortheoperatingsystemvariableORA_SDTZontheclientmachineE.setthevaluefortheoperatingsystemvariableORA_SDTZonthedatabaseservermachine
- 未知题型 Whichthreebuilt-inscanyouusetonavigatebetweenformsinvokedwiththeOPEN_FORMbuilt-in?()
- 未知题型 Identifytwocorrectstatementstocompletethesentance.InaCoherenceimplementation,itisabestpracticetoimplementPortableObjectonallcustomerobjectsbecause:()
- 未知题型 AJavaBeanscomponenthasthefollowingfield:11.privatebooleanenabled;WhichtwopairsofmethoddeclarationsfollowtheJavaBeansstandardforaccessingthisfield?()
- 未知题型 服务器按外形分类可分为()
- 未知题型 YourcompanyhasanActiveDirectoryforestthatrunsatthefunctionallevelofWindowsServer2008.YouimplementActiveDirectoryRightsManagementServices(AD RMS).YouinstallMicrosoftSQLServer2005.WhenyouattempttoopentheAD RMSadministrationWebsite,youreceivethefollowingerrormessage:"SQLServerdoesnotexistoraccessdenied."YouneedtoopentheAD RMSadministrationWebsite.Whichtwoactionsshouldyouperform()A.RestartIIS.B.InstallMessageQueuing.C.StarttheMSSQLSVCservice.D.ManuallydeletetheServiceConnectionPointinActiveDirectoryDomainServices(ADDS)andrestartAD RMS.
- 未知题型 YourcompanyhasasingleActiveDirectorydirectoryserviceforest.AlluseraccountsarelocatedintheUserscontainer.Youneedtocreateanumberoforganizationalunits(OUs)thatwillbeusedtostoreuseraccounts.Whataretwopossiblewaystoachievethisgoal?()A.UsetheActiveDirectorySitesandServicessnap-in.B.UsetheActiveDirectoryUsersandComputerssnap-in.C.UsetheDsaddcommand-linetoolwiththeOUparameter.D.UsetheDsmodcommand-linetoolwiththeOUparameter.
- 未知题型 YournetworkcontainsanActiveDirectorydomainnamedcontoso.com.Thedomaincontainsfivedomaincontrollers.YouaddalogoffscripttoanexistingGroupPolicyobject(GPO).Youneedtoverifythateachdomaincontrollersuccessfullyreplicatestheupdatedgrouppolicy.Whichtwoobjectsshouldyouverifyoneachdomaincontroller()A.//servername/SYSVOL/contoso.com/Policies/{GUID}/gpt.iniB.//servername/SYSVOL/contoso.com/Policies/{GUID}/machine/registry.polC.theuSNChangedvaluefortheCN={GUID},CN=Policies,CN=System,DC=contoso,DC=comcontainerD.theversionNumbervaluefortheCN={GUID},CN=Policies,CN=System,DC=contoso,DC=comcontainer