版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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參加運(yùn)算的關(guān)系必須相容(即含有相同的屬性集)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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 分家協(xié)議的內(nèi)容
- 個(gè)人的居間協(xié)議模板
- 2023裝修房子協(xié)議書(shū)七篇
- 銀屑病甲病因介紹
- 竣工驗(yàn)收要點(diǎn)培訓(xùn)課件
- (范文)雕刻機(jī)項(xiàng)目立項(xiàng)報(bào)告
- 公路工程竣工資料管理 黃 00課件講解
- 2024年秋江蘇名小四年級(jí)語(yǔ)文12月月考試卷-A4
- 2023年廢棄資源和廢舊材料回收加工品項(xiàng)目融資計(jì)劃書(shū)
- 2023年家庭投影儀項(xiàng)目融資計(jì)劃書(shū)
- 內(nèi)科學(xué)糖尿病教案
- 《高尿酸血癥》課件
- 微量泵的操作及報(bào)警處置課件查房
- 云南省昆明市西山區(qū)2023-2024學(xué)年七年級(jí)上學(xué)期期末語(yǔ)文試卷
- 人教版小學(xué)數(shù)學(xué)四年級(jí)上冊(cè)5 1《平行與垂直》練習(xí)
- 市政設(shè)施養(yǎng)護(hù)面年度計(jì)劃表
- 公差配合與技術(shù)測(cè)量技術(shù)教案
- 堅(jiān)持教育、科技、人才“三位一體”為高質(zhì)量發(fā)展貢獻(xiàn)高校力量
- 污水處理廠工藝設(shè)計(jì)及計(jì)算
- 杭州宇泰機(jī)電設(shè)備有限公司X射線機(jī)室內(nèi)探傷項(xiàng)目(新建)環(huán)境影響報(bào)告
- 2023年冷柜行業(yè)專(zhuān)題研究報(bào)告
評(píng)論
0/150
提交評(píng)論