下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Python程序設(shè)計(jì)(英語(yǔ))知到智慧樹章節(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)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024鋁灰運(yùn)輸及環(huán)保處理一體化合同3篇
- 職業(yè)學(xué)院工會(huì)章程
- 2024標(biāo)準(zhǔn)房屋買賣中介服務(wù)協(xié)議模板版B版
- 2024全新產(chǎn)品發(fā)布會(huì)廣告合作合同下載
- 2024設(shè)備購(gòu)買安裝調(diào)試合同
- 初中語(yǔ)文課堂中要滲透意識(shí)形態(tài)
- 2025年度人工智能技術(shù)研發(fā)采購(gòu)合同范本2篇
- 2024洗車工辭職報(bào)告及洗車店客戶數(shù)據(jù)保護(hù)與隱私政策合同3篇
- 2024高效追償及擔(dān)保義務(wù)合同范例下載一
- 2024年度物流信息平臺(tái)服務(wù)外包合作協(xié)議范本3篇
- 2024年度-呼吸道傳染病防治
- 我國(guó)個(gè)人信息保護(hù)立法的完善分析
- 2024醫(yī)療建筑韌性設(shè)計(jì)導(dǎo)則
- 給警察培訓(xùn)急救知識(shí)課件
- 軍隊(duì)文職半年述職報(bào)告
- 鑄牢中華民族共同體意識(shí)-考試復(fù)習(xí)題庫(kù)(含答案)
- 新GCP醫(yī)療器械臨床試驗(yàn)知識(shí)試題(附含答案)
- 2024年浙江首考高考選考生物試卷試題真題(含答案詳解)
- 春節(jié)期間安全告知書
- 西門子數(shù)字化工廠-數(shù)字化車間-先進(jìn)制造技術(shù)
- 飯店新店后廚培訓(xùn)方案
評(píng)論
0/150
提交評(píng)論