下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Python程序設(shè)計(jì)(英語(yǔ))知到智慧樹(shù)章節(jié)測(cè)試課后答案2024年秋中央財(cái)經(jīng)大學(xué)第一章單元測(cè)試
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ò)
第二章單元測(cè)試
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ò)
第三章單元測(cè)試
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ì)
第四章單元測(cè)試
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ì)
第五章單元測(cè)試
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ì)
第六章單元測(cè)試
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ò)
第七章單元測(cè)試
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ì)
第八章單元測(cè)試
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ì)
第九章單元測(cè)試
()
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ò)
第十章單元測(cè)試
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ò)
第十一章單元測(cè)試
Themethodthataddsasingleitemtotheendofalistis()
A:addB:appendC:plusD:extend
答案:appendWhichofthefollowingexpressionscorrectlytestsifxiseven?()
A:x%2==xB:even(x)C:x%2==0D:notodd(x)
答案:x%2==0Itemscanberemovedfroma
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 冬休安全應(yīng)急預(yù)案范文(5篇)
- 童裝市場(chǎng)趨勢(shì)洞察-洞察分析
- 連接器-材料知識(shí)培訓(xùn)課件
- 關(guān)于節(jié)約糧食國(guó)旗下講話(huà)稿(17篇)
- 六年級(jí)《各具特色的民居》課件
- 汽車(chē)設(shè)計(jì)-課程設(shè)計(jì)-離合器設(shè)計(jì)
- 辦公空間設(shè)計(jì)中的天文元素運(yùn)用
- 農(nóng)業(yè)科技成果轉(zhuǎn)化的新機(jī)遇與挑戰(zhàn)
- 健康生活家庭健身器材全解析
- 企業(yè)內(nèi)部如何進(jìn)行創(chuàng)新成果的評(píng)估與保護(hù)
- 2024秋國(guó)開(kāi)《管理學(xué)基礎(chǔ)》形考任務(wù)(1234)試題及答案
- 叉車(chē)安全管理
- 考試安全保密培訓(xùn)
- 江蘇省揚(yáng)州市2023-2024學(xué)年高一上學(xué)期期末考試物理試題(含答案)
- 2024年時(shí)事政治題庫(kù)附參考答案(綜合題)
- 數(shù)字化年終述職報(bào)告
- 消防車(chē)換季保養(yǎng)計(jì)劃
- 股東會(huì)表決票-文書(shū)模板
- 肉牛育肥基地建設(shè)項(xiàng)目可行性研究報(bào)告書(shū)
- 電力土建安全質(zhì)量培訓(xùn)
- 2022-2023學(xué)年山東省濟(jì)南市高一上學(xué)期期末考試化學(xué)試題(解析版)
評(píng)論
0/150
提交評(píng)論