Documente Academic
Documente Profesional
Documente Cultură
IBM_TestDB2: DB2-Test
DB2 Student11
Aktualizovat profil Moje kurzy Odhl sit se
Webkoly IS IBM_TestDB2
Nedle11listopadu2012
2 Body:1
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
2/15
11/11/12
IBM_TestDB2: DB2-Test
odpov
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
3/15
11/11/12
IBM_TestDB2: DB2-Test
9 Body:1
10 Body:1
11 Body:1
12 Body:1
4/15
11/11/12
IBM_TestDB2: DB2-Test
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
15 Body:1
WhichofthefollowingiscreatedwhenaDB2databaseiscreated?
Vybertejednu odpov a.SYSCATSPACEtablespace b.IBMDEFAULTbufferpool c.TEMPSPACE1tablespace d.Alloftheabove Sprvnodpov Bodovzisk:1/1.
16 Body:1
Ifcircularloggingisused,thefollowingtypesofbackupareallowed: Vybertejednu
5/15
11/11/12
IBM_TestDB2: DB2-Test
odpov
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
19 Body:1
20 Body:1
Whichofthefollowingprogramminglanguagescanbeusedtodevelopapplicationsthatrequireaccesstoa DB2database?
6/15
11/11/12
IBM_TestDB2: DB2-Test
Vybertejednu odpov
Sprvnodpov Bodovzisk:1/1.
21 Body:1
22 Body:1
23 Body:1
24 Body:1
7/15
11/11/12
IBM_TestDB2: DB2-Test
25 Body:1
Whichofthefollowingoptionsbestdescribesadomainfoundinthetablebelow? CREATETABLEEMPLOYEE( IDINTEGERNOTNULL, NAMEVARCHAR(30)NOTNULL, EXTENSIONINTEGERNOTNULL, MANAGERVARCHAR(30)NOTNULL PRIMARYKEY(ID)) TERMINATE IDNAMEEXTENSIONMANAGER 1JohnS53412Y 2SusanP54123N 3JenniferL51234N
Vybertejednu odpov
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.
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
30 Body:1
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
34 Body:1
WhichofthefollowingistrueaboutRelationalDatabases?
Vybertejednu odpov a.Rowsarealsoknownasfieldsofthetable b.Atableconsistsofcolumnsandrows c.Rowsinthesametablecanhaveadifferentsetofcolumns d.Relationaldatabasescannotstorevideooraudio Sprvnodpov Bodovzisk:1/1.
10/15
11/11/12
IBM_TestDB2: DB2-Test
35 Body: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
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
41 Body:1
Considerthefollowingcommand: CREATETABLESPACEMYTBSP1MANAGEDBYAUTOMATIC
Whatwillbetheresultofrunningthiscommand?
Vybertejednu odpov a.Creationofatemporarytablespacecalledmytbsp1thatismanagedautomatically b.Creationofalargetablespacecalledmytbsp1thatismanagedautomatically c.Creationofausertablespacecalledmytbsp1thatismanagedautomatically d.Thiscommandwillreturnasyntaxerrortotheuser
12/15
11/11/12
IBM_TestDB2: DB2-Test
Sprvnodpov Bodovzisk:1/1.
42 Body:1
43 Body:1
WhichofthefollowingisthelowestcostDB2productthatcanbelegallyinstalledonaLinuxserverthathas2 CPUs? Vybertejednu odpov a.DB2ExpressEdition b.DB2Everyplace c.DB2EnterpriseServerEdition d.DB2WorkgroupServerEdition Sprvnodpov Bodovzisk:1/1.
44 Body:1
45 Body:1
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
14/15
11/11/12
IBM_TestDB2: DB2-Test
49 Body:1
50 Body:1
Dokonitprohldku
Stednkolainformatikyaspoj ,Brno,ichnova23.Kontakt:ssibrno@seznam.cz.
15/15