版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年醫(yī)學(xué)基礎(chǔ)理論知識(shí)考題
- 環(huán)保產(chǎn)業(yè)發(fā)展方向探討
- 數(shù)據(jù)分析模型評(píng)估指標(biāo)
- 控?zé)熤R(shí)競(jìng)賽試題答案及答案
- 2025年屏邊縣幼兒園教師招教考試備考題庫(kù)附答案解析(奪冠)
- 雨課堂學(xué)堂在線(xiàn)學(xué)堂云《毒理學(xué)之歷史案例分析(中山)》單元測(cè)試考核答案
- 2025年山西藥科職業(yè)學(xué)院?jiǎn)握新殬I(yè)傾向性考試題庫(kù)附答案解析
- 2025年門(mén)源縣招教考試備考題庫(kù)及答案解析(奪冠)
- 2025年太原旅游職業(yè)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫(kù)附答案解析
- 2025年浙江警官職業(yè)學(xué)院?jiǎn)握新殬I(yè)傾向性考試題庫(kù)附答案解析
- 2026湖北十堰市丹江口市衛(wèi)生健康局所屬事業(yè)單位選聘14人參考考試題庫(kù)及答案解析
- 手術(shù)區(qū)消毒和鋪巾
- 企業(yè)英文培訓(xùn)課件
- (正式版)DBJ33∕T 1307-2023 《 微型鋼管樁加固技術(shù)規(guī)程》
- 2025年寵物疫苗行業(yè)競(jìng)爭(zhēng)格局與研發(fā)進(jìn)展報(bào)告
- 企業(yè)安全生產(chǎn)責(zé)任培訓(xùn)課件
- 綠化防寒合同范本
- 2025年中國(guó)礦產(chǎn)資源集團(tuán)所屬單位招聘筆試參考題庫(kù)附帶答案詳解(3卷)
- 中國(guó)昭通中藥材國(guó)際中心項(xiàng)目可行性研究報(bào)告
- 煙草山東公司招聘考試真題2025
- 海爾管理會(huì)計(jì)案例分析
評(píng)論
0/150
提交評(píng)論