下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
Python程序設(shè)計(jì)(英語)知到智慧樹章節(jié)測試課后答案2024年秋中央財(cái)經(jīng)大學(xué)第一章單元測試
Whatisthefundamentalquestionofcomputerscience?()
A:Whatisthemosteffectiveprogramminglanguage?B:Howfastcanacomputercompute?C:Whatcanbecomputed?D:Howmuchmoneycanaprogrammermake?
答案:Whatcanbecomputed?Astatementis()
A:aprecisedescriptionofaproblemB:atranslationofmachinelanguageC:asectionofanalgorithmD:acompletecomputercommand
答案:acompletecomputercommandTheitemslistedintheparenthesesofafunctiondefinitionarecalled()
A:parametersB:bothBandCarecorrectC:argumentsD:parentheticals
答案:bothBandCarecorrectAllinformationthatacomputeriscurrentlyworkingonisstoredinmainmemory.()
A:錯(cuò)B:對(duì)
答案:對(duì)Aloopisusedtoskipoverasectionofaprogram.()
A:對(duì)B:錯(cuò)
答案:錯(cuò)
第二章單元測試
Whichofthefollowingisnotalegalidentifier?()
A:spamB:spAmC:2spamD:spam4U
答案:spamInPython,gettinguserinputisdonewithaspecialexpressioncalled()
A:forB:simultaneousassignmentC:inputD:read
答案:inputTheprocessofdescribingexactlywhatacomputerprogramwilldotosolveaproblemiscalled()
A:DesignB:implementationC:specificationD:programming
答案:specificationInPython,x=x+1isalegalstatement.()
A:錯(cuò)B:對(duì)
答案:對(duì)Thebestwaytowriteaprogramistoimmediatelytypeinsomecodeandthendebugituntilitworks.()
A:錯(cuò)B:對(duì)
答案:錯(cuò)
第三章單元測試
Whichofthefollowingisnotabuilt-inPythondatatype?()
A:intB:rationalC:floatD:string
答案:rationalThemostappropriatedatatypeforstoringthevalueofpiis()
A:stringB:intC:floatD:irrational
答案:floatThepatternusedtocomputefactorialsis()
A:accumulatorB:input,process,outputC:plaidD:countedloop
答案:accumulatorInPython,4+5producesthesameresulttypeas4.0+5.0.()
A:錯(cuò)B:對(duì)
答案:錯(cuò)Definiteloopsareloopsthatexecuteaknownnumberoftimes.()
A:錯(cuò)B:對(duì)
答案:對(duì)
第四章單元測試
Amethodthatchangesthestateofanobjectiscalleda(n)()
A:constructorB:mutatorC:functionD:accessor
答案:mutatorWhichofthefollowingcomputesthehorizontaldistancebetweenpointsp1andp2?()
A:abs(p1.getX()-p2.getX())B:p2.getX()-p1.getX()C:abs(p1-p2)D:abs(p1.getY()-p2.getY())
答案:abs(p1.getX()-p2.getX())Whatcoloriscolor_rgb(0,255,255)?()
A:MagentaB:CyanC:YellowD:Orange
答案:CyanThesituationwheretwovariablesrefertothesameobjectiscalledaliasing.()
A:對(duì)B:錯(cuò)
答案:對(duì)Asinglepointonagraphicsscreeniscalledapixel.()
A:錯(cuò)B:對(duì)
答案:對(duì)
第五章單元測試
Whichofthefollowingisthesameass[0:-1]?()
A:s[-1]B:s[:]C:s[0:len(s)]D:s[:len(s)-1]
答案:s[:len(s)-1]Whichofthefollowingcannotbeusedtoconvertastringofdigitsintoanumber?()
A:floatB:evalC:intD:str
答案:strWhichstringmethodconvertsallthecharactersofastringtouppercase?()
A:uppercaseB:upperC:capwordsD:capitalize
答案:upperInPython“4”+“5”is“45”.()
A:錯(cuò)B:對(duì)
答案:對(duì)Thelastcharacterofastringsisatpositionlen(s)-1.()
A:錯(cuò)B:對(duì)
答案:對(duì)
第六章單元測試
APythonfunctiondefinitionbeginswith()
A:defineB:defC:defunD:function
答案:defWhichofthefollowingisnotareasontousefunctions?()
A:tomakeaprogrammoremodularB:toreducecodeduplicationC:tomakeaprogrammoreself-documentingD:todemonstrateintellectualsuperiority
答案:todemonstrateintellectualsuperiorityAfunctionwithnoreturnstatementreturns()
A:nothingB:NoneC:itsparametersD:itsvariables
答案:NoneThescopeofavariableistheareaoftheprogramwhereitmaybereferenced.()
A:錯(cuò)B:對(duì)
答案:對(duì)InPython,afunctioncanreturnonlyonevalue.()
A:對(duì)B:錯(cuò)
答案:錯(cuò)
第七章單元測試
InPython,thebodyofadecisionisindicatedby()
A:parenthesesB:curlybracesC:indentationD:acolon
答案:indentationPlacingadecisioninsideofanotherdecisionisanexampleof()
A:nestingB:procrastinationC:spooningD:cloning
答案:nestingFindacorrectalgorithmtosolveaproblemandthenstrivefor()
A:clarityB:simplicityC:scalabilityD:efficiency
答案:clarity;simplicity;scalability;efficiencySomemodules,whicharemadetobeimportedandusedbyotherprograms,arereferredtoasstand-aloneprograms.()
A:錯(cuò)B:對(duì)
答案:錯(cuò)Iftherewasnobareexceptattheendofatrystatementandnoneoftheexceptclausesmatch,theprogramwouldstillcrash.()
A:錯(cuò)B:對(duì)
答案:對(duì)
第八章單元測試
Alooppatternthataskstheuserwhethertocontinueoneachiterationiscalleda(n)()
A:infiniteloopB:end-of-fileloopC:interactiveloopD:sentinelloop
答案:interactiveloopAloopthatneverterminatesiscalled()
A:busyB:infiniteC:indefiniteD:tight
答案:infiniteWhichofthefollowingisnotavalidruleofBooleanalgebra?()
A:(TrueorFalse)==TrueB:not(aandb)==not(a)andnot(b)C:(Trueorx)==TrueD:aand(borc)==(aandb)or(aandc)
答案:not(aandb)==not(a)andnot(b)Thecountedlooppatternusesadefiniteloop.()
A:對(duì)B:錯(cuò)
答案:對(duì)Asentinelloopshouldnotactuallyprocessthesentinelvalue.()
A:錯(cuò)B:對(duì)
答案:對(duì)
第九章單元測試
()
A:random()<0.66B:random()<66C:random()>=0.66D:random()>=66
答案:random()<0.66Thearrowsinamodulehierarchychartdepict()
A:logisticflowB:informationflowC:one-waystreetsD:controlflow
答案:informationflowIntheracquetballsimulation,whatdatatypeisreturnedbythegameOverfunction?()
A:floatB:intC:stringD:bool
答案:boolApseudorandomnumbergeneratorworksbystartingwithaseedvalue.()
A:錯(cuò)B:對(duì)
答案:對(duì)Spiraldevelopmentisanalternativetotop-downdesign.()
A:對(duì)B:錯(cuò)
答案:錯(cuò)
第十章單元測試
Amethoddefinitionissimilartoa(n)()
A:loopB:importstatementC:moduleD:functiondefinition
答案:functiondefinitionWhichofthefollowingmethodsisNOTpartoftheButtonclassinthischapter?()
A:activateB:deactivateC:clickedD:setLabel
答案:setLabelWhichofthefollowingmethodsispartoftheDieViewclassinthischapter?()
A:clickedB:setValueC:activateD:setColor
答案:setValueNewobjectsarecreatedbyinvokingaconstructor.()
A:錯(cuò)B:對(duì)
答案:對(duì)
A:錯(cuò)B:對(duì)
答案:錯(cuò)
第十一章單元測試
Themethodthataddsasingleitemtotheendofalistis()
A:addB:appendC:plusD:extend
答案:appendWhichofthefollowingexpressionscorrectlytestsifxiseven?()
A:x%2==xB:even(x)C:x%2==0D:notodd(x)
答案:x%2==0Itemscanberemovedfroma
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年社區(qū)工作計(jì)劃范例
- 2025年學(xué)校教學(xué)工作計(jì)劃
- Unit12 Review(說課稿)-2023-2024學(xué)年人教精通版英語四年級(jí)下冊
- 2025年系學(xué)生會(huì)工作計(jì)劃例文2
- 2025技術(shù)科工作計(jì)劃例文2
- 2025年城管工作計(jì)劃年度工作計(jì)劃
- 2025年度學(xué)校第二學(xué)期教學(xué)工作計(jì)劃
- 3.1-3.2 空氣與氧氣 氧化與燃燒(解析版)
- 2025年度個(gè)人工作計(jì)劃格式
- 2025年培訓(xùn)計(jì)劃方案 培訓(xùn)計(jì)劃和培訓(xùn)內(nèi)容
- 2024年法律職業(yè)資格考試(試卷一)客觀題試卷及解答參考
- 食堂項(xiàng)目經(jīng)理培訓(xùn)
- 安全經(jīng)理述職報(bào)告
- 福建省泉州市2023-2024學(xué)年高一上學(xué)期期末質(zhì)檢英語試題 附答案
- 建筑項(xiàng)目經(jīng)理招聘面試題與參考回答(某大型集團(tuán)公司)2024年
- 安保服務(wù)評(píng)分標(biāo)準(zhǔn)
- (高清版)DB34∕T 1337-2020 棉田全程安全除草技術(shù)規(guī)程
- 部編版小學(xué)語文二年級(jí)上冊單元測試卷含答案(全冊)
- 護(hù)理部年終總結(jié)
- 部編版三年級(jí)上冊語文語文期末質(zhì)量監(jiān)測(含答題卡)
- KISSSOFT操作與齒輪設(shè)計(jì)培訓(xùn)教程
評(píng)論
0/150
提交評(píng)論