知道智慧樹(shù)數(shù)據(jù)結(jié)構(gòu)(全英文)滿(mǎn)分測(cè)試答案_第1頁(yè)
知道智慧樹(shù)數(shù)據(jù)結(jié)構(gòu)(全英文)滿(mǎn)分測(cè)試答案_第2頁(yè)
知道智慧樹(shù)數(shù)據(jù)結(jié)構(gòu)(全英文)滿(mǎn)分測(cè)試答案_第3頁(yè)
知道智慧樹(shù)數(shù)據(jù)結(jié)構(gòu)(全英文)滿(mǎn)分測(cè)試答案_第4頁(yè)
知道智慧樹(shù)數(shù)據(jù)結(jié)構(gòu)(全英文)滿(mǎn)分測(cè)試答案_第5頁(yè)
已閱讀5頁(yè),還剩26頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

第一章測(cè)試1【單選題】(10分)ThealgorithmandflowchartcanhelpustoA.TostorethedataB.ToknowthememorycapacityC.IdentifythedatatypeofavariableD.Specifytheproblemcompletelyandclearly2【單選題】(10分)TherhombusordiamondshapeinflowchartingdenotesA.DecisionB.InputC.InitializationD.Output3【單選題】(10分)Whichofthefollowingisnotanadvantageofaflowchart?A.EfficientcodingB.BettercommunicationC.SystematictestingD.Improperdocumentation4【單選題】(10分)Theflowchartsymbolsusedforstartandstopoperationsarecalledas_______.

A.decisionB.processingC.terminalsD.connectors5【單選題】(10分)TheformulaFn=Fn-1+Fn-2willproduceA.FibonacciNumberB.RamanujanNumberC.PrimeNumberD.EulerNumber6【單選題】(10分)ThemainmeasuresfortheefficiencyofanalgorithmareA.ComplexityandcapacityB.ProcessorandmemoryC.TimeandspaceD.Dataandspace7【單選題】(10分)WhichoneofthefollowingistheconstanttimecomplexityintermsofBig-OhnotationA.O(1)B.O(n2)C.O(n3)D.O(n)8【單選題】(10分)Whatisthetimecomplexityofthefollowingcode?inta=0;for(i=0;i<n;i++){for(j=n;j>i;j--){a=a+i+j;}}A.O(nlogn)B.O(n)C.O(n2)D.O(1)9【單選題】(10分)Whichoneofthefollowingisanexampleforexponentialtimecomplexity?A.O(n2)B.O(2n)C.O(n)D.O(1)10【單選題】(10分)Forlargervaluesofn,whichonerepresentstheslowesttime?A.O(n2)B.O(2n)C.O(n)D.O(n!)第二章測(cè)試1【單選題】(10分)Deletionofanelementfromthearrayreducesthesizeofarrayby___________.A.threeB.twoC.zeroD.one2【單選題】(10分)Assumingthatintisof4bytes,whatisthesizeofintarr[10];?A.30B.10C.40D.203【單選題】(10分)Twodimensionalarraysareusefulwhentheelementsbeingprocessedaretobearrangedintheformof___________.A.NoneoftheaboveB.Both(a)and(b)C.rowsD.columns4【單選題】(10分)Inthepolynomial,A(x)=3x2+2x+4,thedegreeofthispolynomialisA.3B.1C.0D.25【單選題】(10分)Inthepolynomial,A(x)=3x2+2x+4,coefficientoffirsttermisA.2B.1C.0D.36【單選題】(10分)Amatrixhavingalargernumberofelementswithzerovaluesthanthenumberofnon-zeroelementsissaidtobea_____________.A.triangularmatrixB.zeromatrixC.diagonalmatrixD.sparsematrix7【單選題】(10分)WhilerepresentingthesparsematrixA(m×n)withtnon-zerotermsin3-tuplesform,thesizeofthematrixbecomesA.t×nB.m×nC.3×tD.(t+1)×38【單選題】(10分)Consideringasparseofm×nmatrixwithtnon-zeroterms,inFAST_TRANSPOSEalgorithm,thesizeofone-dimensionalarray(SorT)isequalto:A.n+tB.mC.nD.t9【單選題】(10分)Consideringasparseofm×nmatrixwithtnon-zeroterms,thetimecomplexityofTRANSPOSEalgorithmis:A.O(n*t)B.O(n+t)C.O(nt)D.O(n-t)10【單選題】(10分)WhichofthefollowingstatementistrueregardingTRANSPOSEandFAST_TRANSPOSEalgorithms.A.NoneoftheaboveB.TheTRANSPOSEalgorithmisslowerthanFAST_TRANSPOSEC.TheTRANSPOSEalgorithmisfasterthanFAST_TRANSPOSED.TimecomplexitiesofTRANSPOSEandFAST_TRANSPOSEaresame第三章測(cè)試1【單選題】(10分)Theelementisinsertedfirstandwillberemovedlastin_____________.A.queueB.stackC.noneoftheaboveD.linkedlist2【單選題】(10分)Theexpression1*2^3*4^5*6isevaluatedas(^isforpower,asina^b=ab):A.49152B.173458C.162^30D.32^303【單選題】(10分)Thedatastructurerequiredtocheckwhetheranexpressioncontainsbalancedparenthesisis?A.TreeB.ArrayC.QueueD.Stack4【單選題】(10分)ThepostfixformofA*B+C/Dis?A.AB*CD/+B.ABCD+/*C.A*BC+/DD.*AB/CD+5【單選題】(10分)Whichdatastructureisneededtoconvertinfixnotationtopostfixnotation?A.StackB.BranchC.QueueD.Tree6【單選題】(10分)Transformthefollowinginfixexpressiontoprefixform.((C*2)+1)/(A+B)A./+*C21+ABB.AB+12C*+/C.NoneoftheaboveD./*+12CAB+7【單選題】(10分)Transformthefollowinginfixexpressiontopostfixform.(A+B)*(C-D)/EA.AB+CD-*E/B.AB*C+D/-C.AB+CD*-/ED.ABC*CD/-+8【單選題】(10分)Astackisadatastructureinwhichallinsertionsanddeletionsaremaderespectivelyat:A.atanypositionB.boththeendsC.inthemiddleD.oneend9【單選題】(10分)Whichofthefollowingapplicationsmayuseastack?:A.AlloftheaboveB.SyntaxanalyzerforacompilerC.AparenthesisbalancingprogramD.Keepingtrackoflocalvariablesatruntime10【單選題】(10分)Whichofthefollowingstatementiscorrect.A.NoneoftheaboveB.ApostfixexpressionismerelythereverseoftheprefixexpressionC.PostfixandprefixexpressionsuseparenthesisD.Apostfixexpressionisnotthereverseoftheprefixexpression第四章測(cè)試1【單選題】(10分)Aqueueisadatastructureinwhichallinsertionsanddeletionsaremaderespectivelyat:A.rearandfrontB.frontandrearC.rearandrearD.frontandfront2【單選題】(10分)Thefollowingdatastructureisusedforschedulingofjobsduringbatchprocessingincomputers.A.stackB.queueC.linkedlistD.tree3【單選題】(10分)Inaqueuethedeletionsaretakeplaceat_________.A.NoneoftheaboveB.topC.frontD.rear4【單選題】(10分)Inaqueuetheinsertionsaretakeplaceat_________.A.rearB.topC.NoneoftheaboveD.front5【單選題】(10分)Incircularqueue,thefrontwillalwayspointtooneposition__________fromthefirstelementinthequeue.A.leftB.clockwiseC.counterclockwiseD.right6【單選題】(10分)Whichofthefollowingisnotthetypeofqueue.A.priorityqueueB.doubleendedqueueC.circularqueueD.singleendedqueue7【單選題】(10分)Oneoftheadvantageofcircularqueueis_____________.A.NoneoftheaboveB.effectiveuseofmemoryC.easiercomputationsD.deletingelementsbasedonpriority8【單選題】(10分)Whatisthetimecomplexityofalinearqueuehavingnelements?A.O(nlogn)B.O(logn)C.O(1)D.O(n)9【單選題】(10分)Whatisadequeue?A.AqueueimplementedwithadoublylinkedlistB.Aqueuewithinsert/deletedefinedforfrontendofthequeueC.Aqueuewithinsert/deletedefinedforbothfrontandrearendsofthequeueD.Aqueueimplementedwithbothsinglyanddoublylinkedlist10【單選題】(10分)Onedifferencebetweenaqueueandastackis:A.Queuesrequiredynamicmemory,butstacksdonot.B.Stacksrequiredynamicmemory,butqueuesdonot.C.Stacksusetwoendsforaddinganddeleting,butqueuesuseone.D.Queuesusetwoendsforaddinganddeleting,butstacksuseone.第五章測(cè)試1【單選題】(10分)AlinearlistofdataelementswhereeachelementcallednodeisgivenbymeansofpointeriscalledA.nodelistB.linkedlistC.queueD.stack2【單選題】(10分)Consideranimplementationofunsortedsinglylinkedlist.Supposeithasrepresentationwhichaheadpointeronly.Giventherepresentation,whichofthefollowingoperationcanbeimplementedinO(1)time?(I).Insertionatthefrontofthelinkedlist.(II).Insertionattheendofthelinkedlist.(III).Deletionofthefrontnodeofthelinkedlist.(IV).Deletionofthelastnodeofthelinkedlist.A.IandIIIB.I,II,andIIIC.I,II,andIVD.IandII3【單選題】(10分)Whatisthetimecomplexitytocountthenumberofelementsinthelinkedlist?A.O(1)B.O(n2)C.O(logn)D.O(n)4【單選題】(10分)InwhichofthefollowinglinkedliststherearenoNULLlinks?A.DoublylinkedlistB.NoneoftheaboveC.SinglylinkedlistD.Circularlinkedlist5【單選題】(10分)Indoublylinkedlists,traversalcanbeperformed?A.OnlyinforwarddirectionB.InbothdirectionsC.NoneD.Onlyinreversedirection6【單選題】(10分)Whatkindoflistisbesttoanswerquestionssuchas:“Whatistheitematpositionn?”A.Singly-linkedlistsB.NoneoftheaboveC.Doubly-linkedlistsD.Listimplementedwithanarray7【單選題】(10分)Inasinglylinkedlistwhichoperationdependsonthelengthofthelist.A.DeletethelastelementofthelistB.AddanelementbeforethefirstelementofthelistC.DeletethefirstelementofthelistD.Interchangethefirsttwoelementsofthelist8【單選題】(10分)Thelinkfieldinanodecontains:A.dataofcurrentnodeB.addressofthenextnodeC.dataofnextnodeD.dataofpreviousnode9【單選題】(10分)Linkedlistdatastructureoffersconsiderablesavingin:A.SpaceutilizationB.ComputationaltimeC.SpaceutilizationandcomputationaltimeD.Noneoftheabove10【單選題】(10分)Alinearlistinwhicheachnodehaspointerstopointtothepredecessorandsuccessorsnodesiscalledas:A.CircularlinkedlistB.Singly-linkedlistsC.Doubly-linkedlistsD.Linearlinkedlist第六章測(cè)試1【單選題】(10分)Torepresenthierarchicalrelationshipbetweenelements,whichdatastructureissuitable?A.treeB.arrayC.stackD.queue2【單選題】(10分)Whatisthemaximumnumberchildrenthatabinarytreenodecanhave?A.1B.0C.2D.33【單選題】(10分)TheinordertraversaloftreewillyieldasortedlistingofelementsoftreeinA.NoneoftheaboveB.BinarysearchtreesC.BinarytreesD.Heaps4【單選題】(10分)Ifwestorethenodesofabinarytreeinanarraywithindexstartingfromzero,therightchildofanodehavingindexncanbeobtainedat:A.2n+2B.n+1C.(n-1)/2D.2n+15【單選題】(10分)WhichofthefollowingtraversaloutputsthedatainsortedorderinaBST?A.InorderB.PostorderC.PreorderD.Levelorder6【單選題】(10分)Toobtainaprefixexpression,whichofthefollowingt

溫馨提示

  • 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ì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論