![SSD7數據庫系統(tǒng)選擇題答案_第1頁](http://file4.renrendoc.com/view2/M00/26/3E/wKhkFmZ0KvaAZFyEAAJ00PHMLfM475.jpg)
![SSD7數據庫系統(tǒng)選擇題答案_第2頁](http://file4.renrendoc.com/view2/M00/26/3E/wKhkFmZ0KvaAZFyEAAJ00PHMLfM4752.jpg)
![SSD7數據庫系統(tǒng)選擇題答案_第3頁](http://file4.renrendoc.com/view2/M00/26/3E/wKhkFmZ0KvaAZFyEAAJ00PHMLfM4753.jpg)
![SSD7數據庫系統(tǒng)選擇題答案_第4頁](http://file4.renrendoc.com/view2/M00/26/3E/wKhkFmZ0KvaAZFyEAAJ00PHMLfM4754.jpg)
![SSD7數據庫系統(tǒng)選擇題答案_第5頁](http://file4.renrendoc.com/view2/M00/26/3E/wKhkFmZ0KvaAZFyEAAJ00PHMLfM4755.jpg)
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
Multiple-ChoiceQuiz11.AnE-Commercesystemconsistsofthefollowingcomponents.Whichofthesesamecomponentsmustbeincludedinadatabase?(c)Thedata,suchasinformationaboutthegoodsavailableforsale,customers,ordersplaced,shippinginformation,etc.Adatabasemustincludeacollectionofprogramsthatcontrolthedata,suchasprogramstocreate,maintain,andmanipulatethedata.Theseprogramscanbeeasilyusedtocreate,maintain,andmanipulatedatainotherdomains.Adatabasemustincludeacollectionofprogramsthatoperateonthedata,butarespecifictotheE-commercesystem.Theseprogramsenableuserstobrowsethroughthestore-items,placeorders,trackshipping,etc.(a)I,II,andIII(b)IandIIonly(c)Ionly(d)IIonly2.AnE-Commercedatabasecontainsdataaboutcustomers,products,orders,systemresponsetimes,etc.WhichofthefollowingcanbespecifiedasintegrityconstraintsinanE-Commercedatabasesystem?(d)NotwoproductscanhavethesameproductID.TheDBMSresponsetimeforallWebrequestsshouldbeatmost2seconds.Acustomerordercannothavemorethanoneshippingaddress.(a)Ionly(b)I,II,andIII(c)IandIIonly(d)IandIIIonlyFeedback:TheconstraintsI,IIandIIIspecifytheapplicationsemanticsofthedatacapturedintheE-Commercedatabase.ConstraintIII,althoughitseemscontrarytocommonsense,isnotsomethingthatcanbeprohibitedbytheDBMSbecausetheDBMSisgeneralpurpose.TheresponsetimeoftheDBMScannotbeenforcedbytheDBMS.Itdependsonfactorssuchtheprocessorspeed,memoryavailable,etc.3.AnE-Commercesystemconsistsofthefollowingcomponents.Whichofthesesamecomponentswillconstituteadatabasesystem?(d)Thedata,suchasinformationaboutthegoodsavailableforsale,customers,ordersplaced,shippinginformation,etc.Acollectionofprogramsthatcontrolthedata,suchasprogramstocreate,maintain,andmanipulatethedataconstitutesadatabasesystem.Theseprogramscanbeeasilyusedtocreate,maintain,andmanipulatedatainotherdomainssuchasinalibraryinformationsystem.Acollectionofprogramsthatoperateonthedata,butarespecifictotheE-commercesystem,constitutesadatabasesystem.Theseprogramsenableuserstobrowsethroughthestore-items,placeorders,trackshipping,etc.(a)IandIIonly(b)IIonly(c)Ionly(d)I,II,andIIIFeedback:Adatabasesystemincludesthedata,theDBMS,andtheapplication-specificprogramsthatoperateonthatdata.5.Inadatabasesystem,whoseresponsibilityisittoprovidedataconsistency?(d)(a)thedatabaseadministrator's(b)theuser's(c)theapplicationprogrammer's(d)theDBMS's6.Adatabaseisneededforwhichofthefollowingapplicationscenarios?(b)Avideostorethatneedstokeeptrackofdataaboutmembers,aboutvideoscarriedbythestore,aboutvideosrentedbymembers,aswellasdataconcerningborrow-date,return-date,andpaymentinformation.Inthehumanresourcesdepartmentofacompany,informationaboutemployees,theirtitles,theirsalariesandsickdays,andaboutvacationdaystakenbyeachemployee.Acomputer-simulatedvideogamewhichneedstocalculateanddisplay,thephysical(x,y)locationofeachactorinthegame,thespeedwithwhichtheyaremovingatthecurrentinstant,thedirectioninwhichtheyaremoving,theactiontheyareperforming,theangleatwhichthegame-playerisviewingthescene.(a)IandIIIonly(b)IandIIonly(c)I,II,andIII(d)Ionly7.Thephysicalstoragestructurewillbe_____totheapplicationprogrammerinadatabaseapproach,andwillbe_____totheapplicationprogrammerinafilesystemapproach.(b)(a)visible,visible(b)hidden,visible(c)visible,hidden(d)hidden,hiddenMultiple-ChoiceQuiz21.TheforeignkeyinatableT1_____thesame_____asthecorrespondingprimarykeyintableT2.(d)musthave,nameneednothave,namemusthave,domain(a)I,II,andIII(b)IandII(c)IandIII(d)IIandIII2.Thedegreeofatableisthenumberof_____inthetable.(c)(a)keys(b)rows(c)columns(d)foreignkeys3.Thearityofatableisthenumberof_____inthetable.(c)(a)rows(b)foreignkeys(c)columns(d)keys4.Thecardinalityofatableisthenumberof_____inthetable.(b)(a)keys(b)rows(c)columns(d)foreignkeys5.WhichofthefollowingSQLstatementscanbeusedtoaddarowtoatable?(c)(a)CREATE(b)ADD(c)INSERT(d)APPEND6.TheSQLclausetoperformasetUNIONoperationis(b)(a)UNITE(b)UNION(c)COMBINE(d)MELD7.TheSQLclausetoperformasetdifferenceoperationis(b)(a)OMIT(b)EXCEPT(c)REJECT(d)DIFFER8.DDLisusedto(c)(a)addcontentstotables.(b)definethestructureofdatabaseapplications.(c)specifythestructureofadatabase.(d)accessthecontentsoftables.9.Adeletionoperationwill_____ifthedeletionleadstotheviolationofareferentialintegrityconstraint.(a)(a)fail(b)crashthesystem(c)succeedwithwarning(d)succeedwithoutwarning10.Thetermquerybyexamplerefersto(b)(a)aqueryforSQLexamples(b)avisualquerylanguagedevelopedbyIBM(c)exampleSQLqueriesprovidedbyotherusersthatcanbemodifiedtosuitcurrentneeds(d)exampleSQLqueriesprovidedbytheDBMSthatuserscanmodifytosuittheircurrentneeds11.Whatinformationisnecessarywhenspecifyingthestructureofatable?(d)(a)thenameofthetableandtheamountofstoragespacetobeallocatedtothetable(b)thenameofthetableandthenamesofthetable'sattributes(c)thenameofthetable,thenamesofthetable'sattributes,thedatatypesofthetable'sattributes,theformatsofthetable'sattributes,andthemaximumnumberofrowsthatthetablecanhave(d)thenameofthetable,thenamesofthetable'sattributes,thedatatypesofattributes,andtheformatsofattributes12.WhatcanbespecifiedintheselectionconditionofaSELECTstatement?(a)(a)aBooleanoperation(b)theconditionsunderwhichthestatementshouldbeexecuted(c)thetimeatwhichtheselectionshouldbeperformed(d)anarithmeticoperation13.WhichofthefollowingSQLstatementscanbeusedtomodifyjustonerow(outofmanyrows)inatable?(c)(a)ALTER(b)MODIFY(c)UPDATE(d)CHANGE14.Adeletionoperationwill_____ifthedeletionleadstotheviolationofareferentialintegrityconstraint.(c)(a)succeedwithwarning(b)succeedwithoutwarning(c)fail(d)crashthesystem15.WhichofthefollowingSQLstatementscanbeusedtocreatearelationaltable?(b)(a)APPEND(b)CREATE(c)ADD(d)INSERT16.WithQueryByExample,auserentersaqueryby(b)(a)typingasyntacticallycorrectSQLquerythatusescolumnandtablenamessimilartothecorrectcolumnandtablenamesinadatabase(b)fillinginskeletontablesofthedatabasewithexamplesofwhatistoberetrieved(c)placingSQLkeywords,suchasselect,underthecolumnnamestheywanttoretrieve(d)writinganEnglishdescriptionofthedatathattheuserneeds17.DMLisusedto(d)(a)manipulatethestructureofdatabaseapplications.(b)specifythestructureofadatabase.(c)addanddeletetables.(d)add/modify/deletedatainthedatabase.18.Ajoinoperationjoins_____tablesinto_____.(a)(a)two,one(b)three,two(c)four,two(d)three,one//union/intersect/except參加運算的關系必須相容(即含有相同的屬性集)19.Adifferenceoperationcanbeappliedtotablesthat(b)(a)havethesamecolumnnames(b)areunioncompatible(c)arethesamesize(d)havethesamename20.WhichofthefollowingSQLstatementscanbeusedtoremovearowfromatable?(c)(a)REMOVE(b)ERASE(c)DELETE(d)DESTROYMultiple-ChoiceQuiz31.InSQL,onefunctionoftheASoperatoristo(c)(a)controltheorderinwhichaquery’srowsaresorted(b)definethedomainofanattribute(c)customizethenamesofcolumnsinaquery’sresult(d)limitthecardinalityofarelation2.Whenremovingatablefromtheschema,usingtheRESTRICToptionwould(a)(a)removethetableiftherearenoreferencestoit(b)removethetableandallothertablesthatthespecifiedtablerefersto(c)removethetableandallreferencestoit(d)recursivelyremovethetableandallothertablesthattheremovedtablerefersto3.InSQL,adatabasecanbedestroyedbywhichofthefollowing?(a)(a)thecommandDROPSCHEMA(b)thecommandDELETEDATABASE(c)thecommandDESTROYDATABASE(d)aseriesofDESTROYTABLEcommands4.WhenastringwhoselengthisstrictlylessthannisenteredasthevalueofafieldwhoseSQLdatatypeisVARCHAR(n),thesystemrespondsby(b)(a)re-promptingfortheentryofastringwhoselengthisexactlyn.(b)storingthestringasis.(c)paddingtheendofthestringwithNULLcharacterstolengthnbeforestoringit.(d)paddingtheendofthestringwithspacestolengthnbeforestoringit.5.InSQL,whendestroyingadatabase,theRESTRICToptionremoves(b)(a)everythinginthespecifieddatabase:thedata,schema,etc.(b)theschemaifthedatabasehasnodata(emptytables)(c)thedataandschemafromthespecifieddatabase,butnotfromrelateddatabases(d)thedatabutnottheschema6.InSQL,adatabasecanbecreatedbywhichofthefollowing?(d)(a)aseriesofCREATETABLEcommands(b)thecommandADDDATABASE(c)thecommandINSERTDATABASE(d)thecommandCREATESCHEMA7.InaFROMclauseofaSELECTstatementinSQL,atablecanbealiasedwithwhichofthefollowingoperators?(b)(a)ALIAS(b)AS(c)RENAME(d)@8.InSQL,whichofthefollowingclausescanbeusedtosortresultsinascendingordescendingorderofattributevalues?(c)(a)SORT(b)GROUPBY(c)ORDERBY(d)ARRANGEBY9.WhenspecifyingaselectioncriterioninSQL,attributescanberenamedwithwhichofthefollowingoperators?(d)(a)ALIAS(b)@(c)RENAME(d)AS10.InSQL,whichofthefollowingoperatorscanbeusedtoexpresssearchesthattestforarangeinaselectioncondition?(a)(a)BETWEEN(b)RANGE(c)STARTandEND(d)FROMandTOMultiple-ChoiceQuiz41.Whichofthefollowingistrueaboutupdateabilityofviews?(a)(a)Aviewisupdateableifitinvolvesonetableandcontainsakey.(b)Aviewisupdateableifitinvolvesmultipletablesandnokeys.(c)Aviewisupdateableifitinvolvesonetableanddoesnotcontainakey.(d)Aviewisnotupdateableunderanycircumstance.2.Averticalviewallowsusersaccessto(d)(a)onlythesystemtables(b)onlyspecificrowsofthedefiningtables(c)onlytheusertables(d)onlyspecificcolumnsofthedefiningtables3.Ahorizontalviewallowsusersaccessto(a)(a)onlyspecificrowsofthedefiningtables(b)onlyspecificcolumnsofthedefiningtables(c)onlythesystemtables(d)onlythebasetables4.Considertwotables,Employee(EmpNo,Name,DeptNo)andDepartment(DeptNo,Name,Manager)withprimarykeysbeingEmpNoandDeptNorespectively.TheDeptNoattributeoftheEmployeetablehasaNOTNULLconstraintandisaforeignkeythatreferencestheDeptNoattributeoftheDepartmenttable.TheManagerattributeoftheDepartmenttablehasaNOTNULLconstraintandisaforeignkeythatreferencestheEmpNoattributeoftheEmployeetable.Whenthetablesareempty,theonlywaytoinsertrowsintothetwotablesis(d)(a)touseatransactioninNOTDEFERRABLEmode(b)touseatransactioneitherinDEFERRABLEmodeorinNOTDEFERRABLEmode(c)nottouseatransactionatall(d)touseatransactioninDEFERRABLEmode5.TheSQLkeyword_____makesthemodificationsofthetransactionpermanent,whiletheSQLkeyword_____discardsthemodificationsofthetransaction.(b)(a)WRITE,ABORT(b)COMMIT,ROLLBACK(c)UPDATE,SELECT(d)SAVE,CANCEL6.Whichofthefollowingcommandscanbeusedtogiveaccesspermissionstoatable?(a)(a)GRANT(b)AUTHORIZE(c)PERMIT(d)ALLOW7.Whocanalwaysgiveaccesspermissionstoatable?(b)(a)onlythesuper-user(b)theownerofthetable(c)theuserofthetable(d)onlythedatabaseadministrator(DBA)8.Whichofthefollowingcommandscanbeusedtoremoveaccessprivilegesassociatedwithatable?(a)(a)REVOKE(b)DENY(c)RETRACT(d)REMOVE9.WhenisembeddedSQLreferredtoasstaticSQL?(d)(a)whentheSQLstatementscanneverbechanged(b)whentheembeddedSQLoperatesonthestaticpartofthedatabase(c)whentheembeddedSQLalwaysreturnsthesamesetofresults(d)whentheembeddedSQListranslatedintoDBMScallsatcompile-time10.WhenisembeddedSQLreferredtoasdynamicSQL?(a)(a)whentheembeddedSQListranslatedintoDBMScallsatrun-time(b)whentheembeddedSQLoperatesonthedynamicpartofthedatabase(c)whentheembeddedSQLalwaysreturnsdifferentsetsofresults(d)whentheSQLstatementsarechangedineveryrun11.Whichofthefollowingistrueaboutviewsbeinguptodate?(a)(a)Viewsarealwaysuptodate.(b)Viewscanbeautomaticallymadeuptodateperiodicallybythesystem.(c)Viewsareneveruptodate;thereisalwaysalagtime.(d)Viewsareuptodateonlyafterthesynchronizationoperationbytheuser.12.WhichofthefollowingreferentiallytriggeredactionsaresupportedinSQLwhenareferentialintegrityconstraintisviolated?(a)SETNULLREJECTCASCADESETDEFAULT(a)I,III,andIVonly(b)IIandIIIonly(c)IandIVonly(d)I,II,andIIIonly13.Whichofthefollowingistrueaboutupdateabilityofviews?(c)(a)Aviewisnotupdateableifitinvolvesonetableandcontainsakey.(b)Aviewisupdateableunderallcircumstances.(c)Aviewisnotupdateableifitinvolvesaggregatefunctionsandnestedqueries.(d)Aviewisnotupdateableunderanycircumstance.Multiple-ChoiceQuiz51.InanERmodel,whatisarecursiverelationshiptype?(d)(a)Thetypeofrelationshipthatdoesnotbelonganywhere(b)Anever-endingtypeofrelationship(c)Therelationshiptypewheretherelatedentitiesareoneandthesame(d)Thetypeofrelationshipbetweenentitiesofoneentitytype2.InanERmodel,thecardinalityratioofarelationshiptypeis(b)(a)thenumberofinstancesofrelationshipsofthatrelationshiptype(b)thenumberofrelationshipsofthatrelationshiptypeinwhichanentitycanparticipate(c)theminimumnumberofentitiesthatcanparticipateinthatrelationshiptype(d)thenumberofentitytypesinvolvedinthatrelationshiptype3.Whichofthefollowingistrueaboutstorageforderivedattributes?(b)(a)Derivedattributesmustnotbestored.(b)Derivedattributesareusuallynotstoredbecausetheycanbecomputed.(c)Derivedattributesmustbestored.(d)Derivedattributesareusuallystoredbecausestorageimprovesretrievalperformance.4.Aweakentitytypeimpliesa(c)(a)relationshipwithpartialparticipationconstraint(b)strongrelationshiptype(c)relationshipwithtotalparticipationconstraint(d)weakrelationshiptype5.IntheEntity-Relationshipmodel,propertiesthatcharacterizeentitiesandrelationshipsaremodeledas(c)(a)weakentities(b)entitytypes(c)attributes(d)participationconstraints6.IntheEntity-Relationshipmodel,aderivedattributeisone(c)(a)thatiscomposedofmultipleatomicattributes(b)thatmayhavemultiplevaluessimultaneously(c)whosevaluecanbecomputedfromthevaluesofotherattributes(d)thatcharacterizesarelationshipinsteadofanentity7.InanERmodel,whichofthefollowingistrueaboutacomponentattribute?(b)(a)Acomponentattributealwayscontainsothercomponents.(b)Acomponentattributecanbeacompositeattribute.(c)Acomponentattributeisalwaysatomic.(d)Componentattributesmustalwaysbecombinedbyanaggregationoperation.8.InERmodeling,generalizationistheprocessofgenerating(b)(a)entitiesoutofattributes(b)superclassesoutofsubclasses(c)subclassesoutofsuperclasses(d)attributesoutofentities9.Whichofthefollowingistrueaboutattributesinarelationalmodel?(d)Attributescanbemulti-valued.Attributescanbecomposite.(a)IIonly(b)NeitherInorII(c)Ionly(d)BothIandII10.WhenmappingfromanERmodeltoarelationalmodel,astrongentityismappedintoa(d)(a)row(b)column(c)key(d)table11.IntheEntity-Relationshipmodel,thedegreeofarelationshipspecifieswhichofthefollowing?(d)(a)Thecardinalityratiooftherelationship(b)Thenumberofattributesthatcharacterizetherelationship(c)Thenumberofintegrityconstraintsrequiredtoimplementtherelationship(d)Thenumberofentitiesthatparticipateintherelationship12.WhatisanidentifyingownerinanERmodel?(b)(a)Theentityuponwhichastrongentity'sexistencedepends(b)Theentityuponwhichaweakentity'sexistencedepends(c)Therelationshipthatidentifiesastrongentity'sowner(d)Therelationshipthatidentifiesaweakentity'sownerMultiple-ChoiceQuiz61.Whichofthefollowingisaproperty(areproperties)exhibitedbygoodrelationalschemas?Theuseofnullvaluesintuples(d)ThegroupingofasmanyattributesaspossibleintoonemaintableTheeliminationofdataredundancytoavoidupdateanomalies(a)IIandIIIonly(b)None(c)IandIIonly(d)IIIonly2.Throughnormalization,updateanomalies(c)(a)isusuallyleftunchanged(b)canbeminimizedbutnoteliminated(c)canbeeliminated(d)canbemaximized3.Considerthefollowingfunctionaldependency.{A,B}->{C}Regardingthisdependency,whichofthefollowingstatementsis(are)true?(c)ThevaluesofCareuniquelydeterminedbythevaluesofA.ThevaluesofAareuniquelydeterminedbythevaluesofC.(a)IandII(b)Ionly(c)None(d)IIonly4.Whichofthefollowingproblemscanbecausedbydataredundancyinarelationalschema?Inefficientuseofspace(a)UpdateanomaliesandpossiblelossofdataInefficientuseofprocessingtime(a)I,II,andIII(b)IandIIonly(c)IIonly(d)IandIIIonly5.Throughnormalization,dataredundancy(d)(a)canbeminimizedbutnoteliminated(b)areusuallyleftunchanged(c)canbemaximized(d)canbeeliminated6.ConsideratablewithatomicattributesA,B,andCandthefollowingfunctionaldependencies.A->BB->CIftheprimarykeyofthistableisattributeA,thenthisrelationsatisfieswhichofthefollowingnormalforms?(c)FirstSecondThird(a)I,IIandIII(b)Ionly(c)IandIIonly(d)None7.Forarelationtobein3NF,itshouldnotcontain_____attributethatistransitivelydependenton_____.(a)(a)anon-primarykey,theprimarykey(b)aprimarykey,anon-primarykey(c)aprimarykey,aforeignkey(d)anon-primarykey,aforeignkey8.TheFDX->YisafulldependencyinarelationR,ifthereis_____attributeAthatcanbe_____Xandthedependencystillholds.(d)(a)atleastone,removedfrom(b)atleastone,addedto(c)no,addedto(d)no,removedfrom9.Forarelationtobein2NF,_____attributemustbefullyfunctionallydependenton_____.(b)(a)everyalternatekey,theprimarykey(b)everynon-primary-key,theprimarykey(c)everynon-key,atleastonekey(d)everynon-key,everykey10.TheFDX->YisapartialdependencyinarelationR,ifthereis_____attributeAthatcanbe_____Xandthedependencystillholds.(c)(a)atleastone,addedto(b)no,removedfrom(c)atleastone,removedfrom(d)no,addedto11.Whichofthefollowingstatementsconcerningnormalformsistrue?(b)(a)Thelowerthenormalformnumber,thebettertheschemadesignis.(b)Arelationthatisinsecondnormalformisalsoinfirstnormalform.(c)Schemasthatareinsecondnormalformareconsideredthebest.(d)Eachnormalformcontainsastateofindependentproperties,unrelatedtoothernormalforms.Multiple-ChoiceQuiz71.Allchangesmadebyacommittedtransactioncanberecovered(d)(a)onlyiftherehavebeennosoftwarefailures(b)onlyiftherehavebeennohardwarefailures(c)onlyiftherehavebeennosoftwareANDnohardwarefailures(d)irrespectiveofwhethertherehavebeenhardwareorsoftwarefailures2.Isitpossibleforavalidtransactiontoseethemodified,yetuncommitteddataofanothervalidtransactionwhentheisolationlevelissettoSERIALIZABLE?(a)(a)Itisnotpossibleforatransactiontoseethemodified,yetuncommitted,dataofanothertransaction,evenifbothtransactionsareworkingonthesamedata,andevenifbothtransactionsareconcurrent.(b)Itispossibleforatransactiontoseethemodified,yetuncommitted,dataofanothertransactionevenifbothtransactionsarenotworkingonthesamedata,ANDevenifbothtransactionsareNOTconcurrent.(c)Itispossibleforatransactiontoseethemodified,yetuncommitted,dataofanothertransactiononlyifbothtransactionsworkonthesamedata,ANDbothtransactionsareNOTconcurrent.(d)Itispossibleforatransactiontoseethemodified,yetuncommitted,dataofanothertransaction,onlyifbothtransactionsworkonthesamedata,ANDbothtransactionsareconcurrent.3.Alivelockoccurswhen(a)(a)atransactionisabortedandrestartedrepeatedly(b)atransactionholdingalockisaborted(c)2ormoretransactionswaitindefinitelybecauseeachholdsthedataitemsofanother(d)anabortedtransactionholdingalockisrestarted4.Inatwo-phaselockingprotocol,whathappensduringthegrowingphase?(d)(a)Thetransactioncanacquirelocks,andcanreleaseitslocks.(b)Thetransactioncannotacquirelocks,butcanreleaseitslocks.(c)Thetransactioncanacquirelocks,andcanreleaseitslocksaslongasthenumberofacquiredlocksisgreaterthanthenumberofreleasedlocks.(d)Thetransactioncanacquirelocks,butcannotreleaseitslocks.5.Anexclusivelockonadataitemrepresentspermissiontoperformwhichoftheoperations,readandwrite,onthedataitem?(c)(a)Readonly(b)Neitherreadnorwrite(c)Bothreadandwrite(d)Writeonly6.Inatwo-phaselockingprotocol,whathappensduringtheshrinkingphase?(a)(a)Thetransactioncannotacquirelocks,butcanreleaseitslocks.(b)Thetransactioncanacquirelocks,butcannotreleaseitslocks.(c)Thetransactioncanacquirelocks,andcanreleaseitslocks.(d)Thetransactioncanacquirelocks,andcanreleaseitslocksaslongasthenumberofreleasedlocksisgreaterthanthenumberofacquiredlocks.7.Thestricttwo-phaselockingprotocolis_____toimplement.(c)(a)easierthanmosttwo-phaselockingprotocols(b)moredifficultthanmosttwo-phaselockingprotocols(c)theeasiesttwo-phaselockingprotocol(d)themostdifficulttwo-phaselockingprotocol8.Forcepropagationpolicy_____redoactions,andno-forcepropagationpolicy_____redoactions.(a)(a)doesnotrequire,requires(b)requires,requires(c)requires,doesnotrequire(d)doesnotrequire,doesnotrequire9.Immediateupdatepolicy_____undoactions,anddeferredupdatepolicy_____undoactions.(c)(a)doesnotrequire,requires(b)doesnotrequire,doesnotrequire(c)requires,doesnotrequire(d)requires,requires10.Duringrecovery,inwhichofthefollowingwaysarethebeforeandafterimagesusedbytheundoandredoactions?(d)undoactionusesthebeforeimageundoactionusestheafterimageredoactionusestheafterimageredoactionusesthebeforeimage(a)I,II,andIIIonly(b)I,III,andIVonly(c)I,II,III,andIV(d)IandIIIonlyMultiple-ChoiceQuiz81.Whichofthefollowingarepropertiesofagoodhashfunction?(c)Itshouldbecomputedefficiently.Itshouldminimizethenumberofcollisionsbyspreadingkeysasevenlyanduniformlyaspossible.ItshouldalwaysusetheModulo(MOD)function.(a)Ionly(b)IIIonly(c)IandIIonly(d)IIonly2.Wheredoheapfilesaddnewrecords?(c)(a)atrandomlocationsintheheapfile(b)inthemiddleoftheheapfile(c)attheendoftheheapfile(d)atthebeginningoftheheapfile3.Hashingexhibitsthebestperformancefor(a)rangequeries(b)orderingqueryresultsbasedonthekeyusedforhashing(c)equalitysearchesinvolvingthekey,providedthekeyisusedforhashing(d)sequentialscanoftheentiretable4.Asparseindexcontainsentriesfor(a)(a)somerecordsofatable(b)somefieldsofatable(c)allfieldsofatable(d)allrecordsofatable5.Aprimaryindex_____definedonakeyfield,andasecondaryindex_____definedonakeyfield.(d)(a)neednotbe,shouldnotbe(b)shouldbe,shouldnotbe(c)neednotbe,neednotbe(d)shouldbe,neednotbe6.Eachindexentryinanindexfilecontains(c)anindexingvalueapointertothepagewheretherecordwiththevalueappearsanindexingfunction(a)Ionly(b)I,II,andIII(c)IandIIonly(d)IIIonly7.Acylinderofamulti-platterharddiskconsistsof(b)(a)theoutermosttrack(b)trackswiththesamediameter(c)theinnermosttrack(d)trackswithdifferentdiameters8.Toimprovetheperformanceofadatabase,(d)(a)neverusebufferingwhentransferringdatabetweensecondarystorageandmainmemory(b)neverusehashfileswhendecidingonanappropriateindexingstructure(c)alwaysusehashfileswhendecidingonanappropriateindexingstructure(d)minimizetheamountofdatatransferredbetweensecondarystorageandmainmemory9.Thetermblocktransfertimereferstotheamountoftimeittakesto(c)(a)loadtheaddressofadiskblockfromanindex(b)movetheread/writeheadtotheappropriatetrackonthedisk(c)readdatafromadisk(d)positiontheappropriatediskblockundertheread/writehead10.Thetermblockingfactorreferstothenumberof(c)(a)diskblocksthatformatrack(b)diskblocksthatareonaharddiskdriveplatter(c)databaserecordsthatcanbestoredonadiskblock(d)cylindersonaharddiskdrive11.Howdoeschainedoverflowsolvetheproblemofcollisionsinhashing?(d)(a)Thefirstavailableemptybucketinachainedlistofbucketsisused.(b)Thefirstavailableslotintheoverflowareawhereslotsarechainedusingahashfunctionisused.(c)Thefirstavailableslotinalinkedlistofslotsthatisconnec
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年金屬包裝容器及其附件合作協(xié)議書
- 2025年濾紫外石英玻璃燈管合作協(xié)議書
- 九年級綜合實踐課教學計劃1
- 2025年二年級上學期班主任工作總結(3篇)
- 口外-唾液腺疾病診療考核試題
- 2025年個人簡單門面出租合同(2篇)
- 2025年產品訂購合同經典版(4篇)
- 2025年個人車位轉讓合同參考樣本(4篇)
- 2025年交通意外保險協(xié)議樣本(2篇)
- 2025年互助拼車的協(xié)議(2篇)
- 追溯紅色記憶,感受紅色精神,社會實踐活動記錄表
- 網絡設備安裝與調試(華為eNSP模擬器)整套教學課件
- GB/T 15234-1994塑料平托盤
- 教科版科學五年級下冊《生物與環(huán)境》單元教材解讀及教學建議
- “20道游標卡尺題目及答案”
- 公路水運工程施工安全重大隱患排查要點課件
- 北師大版數學六年級下冊-總復習課件(精編版)
- 山西省大同市基層診所醫(yī)療機構衛(wèi)生院社區(qū)衛(wèi)生服務中心村衛(wèi)生所室地址信息
- 項目部、公司成本管理流程圖
- 高中英語選擇性必修二 Unit 1 Period 1 Reading and thinking(課件)(共38張)
- CAS云計算軟件平臺深入介紹
評論
0/150
提交評論