You are on page 1of 15

11/11/12

IBM_TestDB2: DB2-Test

DB2 Student11
Aktualizovat profil Moje kurzy Odhl sit se

Webkoly IS IBM_TestDB2

ProjektElearning Testy DB2-Test Prohldkapokusu.1

Nedle11listopadu2012

DB2-Test Prohldka pokusu . 1


Dokonitprohldku
Zapoet testu Dokonen testu Dlka pokusu Body Znmka Koment

Sunday,11.November2012,10.38 Sunday,11.November2012,10.55 17min.24sekund 49/50 98zmonch100(98%) Successful

AssumingthatyouarecurrentlyconnectedtoaDB2database,whichofthefollowing Body:1 commandswillterminateyourconnection?


1 Vybertejednu odpov a.db2terminate b.db2connectfinalize c.db2connectkill d.db2connectend Sprvnodpov Bodovzisk:1/1.

2 Body:1

WhichofthefollowingisfalseaboutIBMDataStudio? Vybertejednu odpov a.IBMDataStudioisbasedonEclipse b.IBMDataStudioIDEpackageallowsforshellsharing c.IBMDataStudiocanbeusedtodevelopstoredprocedures,UDFsandSQLor XQueryscripts d.IBMDataStudioisfree,opensourcesoftware Sprvnodpov

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

1/15

11/11/12

IBM_TestDB2: DB2-Test

Bodovzisk:1/1.

3 Body:1

Giventhefollowingtable: GUESTS nameage Jenny34 Rodney36 Oliver21 Angie42 Tom28 Vincenzo25 WhatnameswouldbedisplayedastheresultofthefollowingSQLquery SELECTnameFROMGUESTSWHEREnameLIKE'%o_' Vybertejednu odpov a.Oliver,Rodney,Tom b.Tom c.Oliver,Rodney,Tom,Vincenzo d.Rodney,Tom Sprvnodpov Bodovzisk:1/1.

4 Body:1

WhichofthefollowingtoolswouldyouuseifyouneedtoexecuteSQLstatementsagainstaDB2database fromthecommandline? Vybertejednu odpov a.DB2CommandLineProcessor b.DB2ControlCenter c.DB2CommandLineAdvisor d.DB2HealthCenter Sprvnodpov Bodovzisk:1/1.

5 Body:1

WhichofthefollowingisacharacteristicofHighAvailability? Vybertejednu a.Itallowsdefinitionofapolicytoguaranteequalityofservicetoapplications.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

2/15

11/11/12

IBM_TestDB2: DB2-Test

odpov

b..ItallowshighperformanceofaDB2serverbydistributingworkloadacrossseveral machine. c.Itallowscompressionofdata. d.Itallowsreplicationofdatatoastandbyserverthatcantakeoverincaseoffailure.

Sprvnodpov Bodovzisk:1/1.

6 Body:1

WhichofthefollowingisfalseabouttheDB2environment? Vybertejednu odpov a.ThereisaconflictifyouattempttocreateatablespaceinDatabaseAwithatable spacenamethathasalreadybeenusedinthesametablespace b.ATCPIPportuniquelyidentifiesaDB2instance c.ThereisaconflictifyouattempttocreateadatabaseininstanceBwitha databasenamethathasalreadybeenusedininstanceA d.Therecanbemorethahoneinstancerunningatgiventime Sprvnodpov Bodovzisk:1/1.

7 Body:1

Whatfunctionalitydoesautomaticstorageprovide? Vybertejednu odpov a.AutomaticstorageisafunctionofDB2allowstablestobebackedupautomatically onasetschedule b.AutomaticStoragecanbeusedtoautomaticallyreorganizethedataonthe physicalmediainordertoimproveperformance c.Automaticstoragesimplifiesstoragemanagementbyallowingyoutospecify storagepathswherethedatabasemanagercanplacetablespacedata d.Automaticstorageisanoptionthatallowstransactionsthatarewrittentothe databasetobeautomaticallycommitted Sprvnodpov Bodovzisk:1/1.

8 Body:1

GiventhefollowingUPDATEstatement: UPDATEemployeesSETworkdept= (SELECTdeptnoFROMdepartmentWHEREdeptno='A01') WHEREworkdeptISNULL Whichofthefollowingdescribestheresultifthisstatementisexecuted? Vybertejednu odpov a.ThestatementwillonlysucceedifeveryrecordintheEMPLOYEEStablehasa nullvalueintheWORKDEPTcolumn b.Thestatementwillonlysucceedifthedataretrievedbythesubquerydoesnot

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

3/15

11/11/12

IBM_TestDB2: DB2-Test

containmultiplerecords c.ThestatementwillfailbecauseanUPDATEstatementcannotcontainasubquery d.Thestatementwillsucceedifthedataretrievedbythesubquerycontainsmultiple records,onlythefirstrecordwillbeusedtoperformtheupdate Sprvnodpov Bodovzisk:1/1.

9 Body:1

Whichofthefollowingtoolscanbeusedtodevelopstoredprocedures? Vybertejednu odpov a.DB2CommandEditor b.AlloftheAbove c.DB2CLP d.IBMDataStudio Sprvnodpov Bodovzisk:1/1.

10 Body:1

WhichofthefollowingstatementsrevokeaccesstoSAMPLEdatabasefromuserTOM? Vybertejednu odpov a.REVOKEACCESSFROMUSERtomONsample b.REVOKECONNECTONsampleFROMUSERtom c.REVOKEACCESSFROMUSERtomONDATABASE d.REVOKECONNECTONDATABASEFROMUSERtom Sprvnodpov Bodovzisk:1/1.

11 Body:1

Whichofthefollowingstatementsisfalse? Vybertejednu odpov a.B.Onetoone,andmanytomanyarerelationshipsyoucanrepresentinanERD b.D.InaERD,anEntityisrepresentedwitharectangle c.A.Attributesintherelationalmodelmaptorowsinarelationaldatabase d.C.Entitiesintherelationalmodelmaptotablesinarelationaldatabase Sprvnodpov Bodovzisk:1/1.

12 Body:1

Giventheoptionsbelow,whichofthefollowingstatementscanaddrecordstoatable? Vybertejednu odpov a.ADD b.INSERT

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

4/15

11/11/12

IBM_TestDB2: DB2-Test

c.ADDREC d.ADDRECORD Sprvnodpov Bodovzisk:1/1.

13 Body:1

Considerthefollowingscenario.Youhave3tableswiththesamename(TABLE_1)under3differentschemas (SYSIBM,DEFAULTandDB2INST1).YouareconnectedtoaDB2databaseinyourLinuxserverasdb2inst1 andissuethefollowingstatement: SELECT*FROMtable_1 Whichtablewillyoubeselectingdatafrom: Vybertejednu odpov a.DEFAULT.table_1 b.SYSIBM.table_1 c.DB2INST1.table_1 d.Yougetanerrorbecauseyourqueryisambiguous,asthetableschemaisnot specified Sprvnodpov Bodovzisk:1/1.

14 Body:1

Whatdatastoragemethodisthemostoptimalsolutionforthecompany? Vybertejednu odpov a.Database b.Commadelimiteddatafiles c.Spreadsheets d.Textfiles Sprvnodpov Bodovzisk:1/1.

15 Body:1

WhichofthefollowingiscreatedwhenaDB2databaseiscreated?
Vybertejednu odpov a.SYSCATSPACEtablespace b.IBMDEFAULTbufferpool c.TEMPSPACE1tablespace d.Alloftheabove Sprvnodpov Bodovzisk:1/1.

16 Body:1

Ifcircularloggingisused,thefollowingtypesofbackupareallowed: Vybertejednu

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

5/15

11/11/12

IBM_TestDB2: DB2-Test

odpov

a.Offlinefullbackup b.Onlinefullbackup c.Offlineincrementalbackup d.Onlineincrementalbackup

Sprvnodpov Bodovzisk:1/1.

17 Body:1

Whichtwoareoptionalanddonothavetobespecifiedwhencreatingatable?
Oznate vechny sprvn odpovdi a.Columnname b.NOTNULLconstraint c.Tablename d.Columndatatype e.Defaultconstraint Sprvnodpov Bodovzisk:1/1.

18 Body:1

WhichofthefollowingisNOTaSQL/XMLfunctioninDB29.7? Vybertejednu odpov a.XMLEXISTS b.XMLCAST c.EXISTS d.XMLQUERY Sprvnodpov Bodovzisk:1/1.

19 Body:1

InDB29.7,whichofthefollowingfunctionscanbeusedtocreatetablesfromXMLdocuments? Vybertejednu odpov a.TABLEXML b.XMLTABLE c.XML2TABLE d.XML2RELATIONAL Sprvnodpov Bodovzisk:1/1.

20 Body:1

Whichofthefollowingprogramminglanguagescanbeusedtodevelopapplicationsthatrequireaccesstoa DB2database?

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

6/15

11/11/12

IBM_TestDB2: DB2-Test

Vybertejednu odpov

a.PHP b.Java c.Alloftheabove d.C#

Sprvnodpov Bodovzisk:1/1.

21 Body:1

Whichofthefollowingistrueaboutcolumns? Vybertejednu odpov a.Columnsmustbedesignatedaspecificdatatype b.Columnsarealsoknownasrecords c.Columnsarewheretheindividualpiecesofinformationarestoredforeachrecord d.Eachcolumnconsistsofoneormorerecords Sprvnodpov Bodovzisk:1/1.

22 Body:1

WhichofthefollowingisacharacteristicofDB2ExpressC? Vybertejednu odpov a.Ithasa2GBdatabasesizelimit b.Itisfreetodevelop,deployanddistribute c.TheCinthenamestandsfortheClanguage d.Alloftheabove Sprvnodpov Bodovzisk:1/1.

23 Body:1

WhichofthefollowingSQLstatementscanbeusedtoremovedatafromtable"users": Vybertejednu odpov a.DROPTABLEusers b.DELETETABLEusers c.REMOVETABLEusers d.ALTERTABLEusers Sprvnodpov Bodovzisk:1/1.

24 Body:1

WhatisthedefaultisolationlevelinDB29.7forLinux,UnixandWindowsfornewdatabases? Vybertejednu odpov a.Noneoftheabove

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

7/15

11/11/12

IBM_TestDB2: DB2-Test

b.CursorStabilitywithCurrentlyCommittedsemantics c.CursorStability d.UncommittedRead Sprvnodpov Bodovzisk:1/1.

25 Body:1

Whichofthefollowingoptionsbestdescribesadomainfoundinthetablebelow? CREATETABLEEMPLOYEE( IDINTEGERNOTNULL, NAMEVARCHAR(30)NOTNULL, EXTENSIONINTEGERNOTNULL, MANAGERVARCHAR(30)NOTNULL PRIMARYKEY(ID)) TERMINATE IDNAMEEXTENSIONMANAGER 1JohnS53412Y 2SusanP54123N 3JenniferL51234N

Vybertejednu odpov

a.NameDomain=(SetofallPossibleNames) b.ManagerDomain=(N) c.IDDomain=(1,2,3) d.ExtensionDoman=(53412)

Sprvnodpov Bodovzisk:1/1.

26 Body:1

WhichofthefollowingistrueaboutDB2instances?
Vybertejednu odpov a.Ifinstance'A'isdown,databasesinthisinstanceareinaccessible b.Ifinstance'A'crashes,nootherinstancerunninginthesystemwillworkeither c.Withinaninstanceyoucanonlycreateoneandonlyonedatabase d.Instancesarerelatedbetweeneachotherthroughthedbmcfg Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

8/15

11/11/12

IBM_TestDB2: DB2-Test

27 Body:1

InembeddedSQL,whichofthefollowingisanexampleofhowtoestablishaconnectiontotheSAMPLE databaseinDB2? Vybertejednu odpov a.EXECCONNECTTOSAMPLE b.EXECDB2CONNECTTODATABASESAMPLE c.DB2CONNECTTODBSAMPLE d.EXECSQLCONNECTTOSAMPLE Sprvnodpov Bodovzisk:1/1.

28 Body:1

YouareassignedthetaskofimportingalargeamountofdataintoaDB2database.Consideringyoumustlog alltheinformationabouttherowsimportedandthatyouwanttoperformtheloadasfastaspossible,whichis thebesttooltouseforthisjob? Vybertejednu odpov a.INSERT b.IMPORT c.LOAD d.CLP Sprvnodpov Bodovzisk:1/1.

29 Body:1

WhichofthefollowingisNOTtrueaboutkeysintherelationalmodel? Vybertejednu odpov a.PrimarykeyscancontainNULLs. b.Primarykeysuniquelyidentifyeachtupleoftherelation. c.Arelationcanhavemultipleforeignkeys. d.Primarykeysaredefinedbyasubsetofattributesofarelation. Sprvnodpov Bodovzisk:1/1.

30 Body:1

WhichofthefollowingstatementsisFALSEregardingBufferPools? Vybertejednu odpov a.AdatabasecanonlyhaveoneBufferPool. b.ThesizeofaBufferPoolcanbeautomaticallyresizedbySTMM c.BufferPoolsworkasacache,storingdatathatisreadfromtablespaces. d.PagesinaBufferPoolcanbe4k,8k,16kand32kinsize. Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

9/15

11/11/12

IBM_TestDB2: DB2-Test

31 Body:1

WhatisSQL/XML? Vybertejednu odpov a.SQL/XMLisacommunicationprotocolforDB2databases. b.SQL/XMLisalanguagethatprovidesvariouspublishingfunctionstotransform XMLdataintorelationalformandviceversa. c.SQL/XMLisanextensiontoSQLstandardandprovidesvariouspublishing functionstotransformXMLdataintorelationalformandviceversa. d.SQL/XMLispartoftheXQuerystandardandprovidesvariouspublishingfunctions totransformXMLdataintorelationalformandviceversa. Sprvnodpov Bodovzisk:1/1.

32 Body:1

WhicharesomecomponentsoftheRelationalDataModel?
Vybertejednu odpov a.Pointers,sets,constraints b.Relations,attributes,tuples c.Tables,rows,degree d.Instances,recordtypes,entities Sprvnodpov Bodovzisk:1/1.

33 Body:1

WhenusingaRelationalDatabase,whichofthefollowingdoesNOTapply? Vybertejednu odpov a.Dataisstoredinahierarchicalmodel. b.Youcanusenormalizationtoavoidredundantdatainyourtables. c.DefineyourdatabaseschemausingaDataDefinitionLanguage(DDL). d.AccessesdatausingDataManipulationLanguage(DML)suchasSQL. Sprvnodpov Bodovzisk:1/1.

34 Body:1

WhichofthefollowingistrueaboutRelationalDatabases?
Vybertejednu odpov a.Rowsarealsoknownasfieldsofthetable b.Atableconsistsofcolumnsandrows c.Rowsinthesametablecanhaveadifferentsetofcolumns d.Relationaldatabasescannotstorevideooraudio Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

10/15

11/11/12

IBM_TestDB2: DB2-Test

35 Body:1

WhichofthefollowingstatementsgrantsuserJohntheabilitytoinsertdatatotabletab1? Vybertejednu odpov a.GRANTINSERTONTABLEtab1TOUSERJohn b.GRANTADDONTABLEtab1TOUSERJohn c.GRANTADDONTABLEtab1TOJohn d.GRANTINSERTONTABLEtab1TOJohn Sprvnodpov Bodovzisk:1/1.

36 Body:1

WhichDataModelwascreatedwiththefocusofprovidingbetterdataindependence?
Vybertejednu odpov a.Hierarchical b.EntityRelationship c.Semistructured d.Relational Sprvnodpov Bodovzisk:1/1.

37 Body:1

Yourcompanyhasaskedyoutocreateadatabasetostoreandorganizedataaboutthestructureofthe company.Youwanttostorebranch,employeedata,andproductinformationinthreetablesBRANCH, EMPLOYEEandPRODUCT.Anemployeeisassignedtoworkatabranchonaspecificproduct.Withthis information,indicatewhatwouldbetherelationshipyoushouldusebetweenthesetablesconsidering normalization. Vybertejednu odpov a.BRANCHandPRODUCTareparentsofEMPLOYEE b.BRANCHisdependantonEMPLOYEE,PRODUCTisparentofEMPLOYEE c.EMPLOYEEisparentofPRODUCTandBRANCH d.PRODUCTistheparentofBRANCHandEMPLOYEE Sprvnodpov Bodovzisk:1/1.

38 Body:1

Whichofthefollowingprivilegespermitsausertocreateobjectswithinaschema? Vybertejednu odpov a.CONTROL b.REFERENCES c.CREATEIN d.ALTER Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

11/15

11/11/12

IBM_TestDB2: DB2-Test

39 Body:1

Giventhefollowingtabledefinition: SALES SALES_DATEDATE SALES_PERSONCHAR(20) REGIONCHAR(20) SALESINTEGER WhichofthefollowingSQLstatementswillremoveallrowsthathadaSALES_DATEintheyear 1995? Vybertejednu odpov a.DELETE*FROMsalesWHEREYEAR(sales_date)=1995 b.DROP*FROMsalesWHEREYEAR(sales_date)=1995 c.DELETEFROMsalesWHEREYEAR(sales_date)=1995 d.DROPFROMsalesWHEREYEAR(sales_date)=1995 Sprvnodpov Bodovzisk:1/1.

40 Body:1

Giventheoptionsbelow,whichofthefollowingstatementscanremoveatablefromadatabase? Vybertejednu odpov a.DEL b.REMOVE c.DROP d.DELETE Sprvnodpov Bodovzisk:1/1.

41 Body:1

Considerthefollowingcommand: CREATETABLESPACEMYTBSP1MANAGEDBYAUTOMATIC

Whatwillbetheresultofrunningthiscommand?
Vybertejednu odpov a.Creationofatemporarytablespacecalledmytbsp1thatismanagedautomatically b.Creationofalargetablespacecalledmytbsp1thatismanagedautomatically c.Creationofausertablespacecalledmytbsp1thatismanagedautomatically d.Thiscommandwillreturnasyntaxerrortotheuser

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

12/15

11/11/12

IBM_TestDB2: DB2-Test

Sprvnodpov Bodovzisk:1/1.

42 Body:1

WhichofthefollowingisNOTaDMLstatement? Vybertejednu odpov a.SELECT b.UPDATE c.INSERT d.ALTER Sprvnodpov Bodovzisk:1/1.

43 Body:1

WhichofthefollowingisthelowestcostDB2productthatcanbelegallyinstalledonaLinuxserverthathas2 CPUs? Vybertejednu odpov a.DB2ExpressEdition b.DB2Everyplace c.DB2EnterpriseServerEdition d.DB2WorkgroupServerEdition Sprvnodpov Bodovzisk:1/1.

44 Body:1

WhichofthefollowingisNOTtrueaboutkeysintherelationalmodel? Vybertejednu odpov a.Primarykeysuniquelyidentifyeachtupleoftherelation. b.Primarykeysdefinetherelationshipbetweentwotables. c.Arelationcanhavemultipleforeignkeys. d.Primarykeysaredefinedbyasubsetofattributesofarelation. Nesprvnodpov Bodovzisk:0/1.

45 Body:1

Whendoesauthenticationtakesplace? Vybertejednu odpov a.Whentheuserdisconnectsfromadatabase. b.Whentheuserconnectstothedatabase. c.ItispartofDB2serverstartupprocess d.JustbeforeDB2executesaSQLstatementsentbyaclientapplication. Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

13/15

11/11/12

IBM_TestDB2: DB2-Test

46 Body:1

WhichofthefollowingisareasonforusingdatabasestostoredataINSTEADofthemanyalternatives? Vybertejednu odpov a.Databasesarecheapertousethanotheralternatives. b.Databasesstoredatainanunstructuredwayforfasterinsertperformance. c.Databasesallowmultipleuserstohandleandchangethedatawithoutlosingdata anditsconsistency. d.DatabasesareanintrinsicfunctionalityofmostOperatingSystems,thusit'swidely availabletoapplications. Sprvnodpov Bodovzisk:1/1.

47 Body:1

Givingthefollowingcreatetablestatement CREATETABLEstudent_marks (student_nameCHAR(20)NOTNULL, student_numberINTEGERNOTNULL, mathINTEGER, physINTEGER, englInteger) Whichofthefollowingstatementswillretrievethestudent'snamewhodoesNOThaveaphysmark? Vybertejednu odpov a.SELECTstudent_nameFROMstudent_marksWHEREphysisNULL b.SELECTstudent_nameFROMstudent_marksWHEREphys='' c.SELECTstudent_nameFROMstudent_marksWHEREphys=NULL d.SELECTstudent_nameFROMstudent_marksWHEREphys=0 Sprvnodpov Bodovzisk:1/1.

48 Body:1

Whichofthefollowingstatementsisfalse? Vybertejednu odpov a.InaERD,anEntityisrepresentedwitharectangle b.Onetoone,andmanytomanyarerelationshipsyoucanrepresentinaERD c.Entitiesintherelationalmodelmaptotablesinrelationaldatabase d.Attributesintherelationalmodemaptorowsinarelationaldatabase Sprvnodpov Bodovzisk:1/1.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

14/15

11/11/12

IBM_TestDB2: DB2-Test

49 Body:1

WhataretheadvantagesofusingStoredProcedures? Vybertejednu odpov a.Alloftheabove b.Reducesnetworktraffic c.Accesstofeaturesthatexistonlyontheserver d.Enforcementofbusinessrules Sprvnodpov Bodovzisk:1/1.

50 Body:1

WhichofthefollowingisNOTaFeaturePackthatcanaddextrafunctionalitytoaDB2server? Vybertejednu odpov a.StorageOptimization b.AdvancedAccessControl c.PerformanceOptimization d.pureXML Sprvnodpov Bodovzisk:1/1.

Dokonitprohldku

Stednkolainformatikyaspoj ,Brno,ichnova23.Kontakt:ssibrno@seznam.cz.

https://is.cichnovabrno.c /mod/qui /review.php?attempt=11140

15/15

You might also like