下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Python程序设计(英语)知到智慧树章节测试课后答案2024年秋中央财经大学第一章单元测试
Whatisthefundamentalquestionofcomputerscience?()
A:Whatisthemosteffectiveprogramminglanguage?B:Howfastcanacomputercompute?C:Whatcanbecomputed?D:Howmuchmoneycanaprogrammermake?
答案:Whatcanbecomputed?Astatementis()
A:aprecisedescriptionofaproblemB:atranslationofmachinelanguageC:asectionofanalgorithmD:acompletecomputercommand
答案:acompletecomputercommandTheitemslistedintheparenthesesofafunctiondefinitionarecalled()
A:parametersB:bothBandCarecorrectC:argumentsD:parentheticals
答案:bothBandCarecorrectAllinformationthatacomputeriscurrentlyworkingonisstoredinmainmemory.()
A:错B:对
答案:对Aloopisusedtoskipoverasectionofaprogram.()
A:对B:错
答案:错
第二章单元测试
Whichofthefollowingisnotalegalidentifier?()
A:spamB:spAmC:2spamD:spam4U
答案:spamInPython,gettinguserinputisdonewithaspecialexpressioncalled()
A:forB:simultaneousassignmentC:inputD:read
答案:inputTheprocessofdescribingexactlywhatacomputerprogramwilldotosolveaproblemiscalled()
A:DesignB:implementationC:specificationD:programming
答案:specificationInPython,x=x+1isalegalstatement.()
A:错B:对
答案:对Thebestwaytowriteaprogramistoimmediatelytypeinsomecodeandthendebugituntilitworks.()
A:错B:对
答案:错
第三章单元测试
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:错B:对
答案:错Definiteloopsareloopsthatexecuteaknownnumberoftimes.()
A:错B:对
答案:对
第四章单元测试
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:对B:错
答案:对Asinglepointonagraphicsscreeniscalledapixel.()
A:错B:对
答案:对
第五章单元测试
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:错B:对
答案:对Thelastcharacterofastringsisatpositionlen(s)-1.()
A:错B:对
答案:对
第六章单元测试
APythonfunctiondefinitionbeginswith()
A:defineB:defC:defunD:function
答案:defWhichofthefollowingisnotareasontousefunctions?()
A:tomakeaprogrammoremodularB:toreducecodeduplicationC:tomakeaprogrammoreself-documentingD:todemonstrateintellectualsuperiority
答案:todemonstrateintellectualsuperiorityAfunctionwithnoreturnstatementreturns()
A:nothingB:NoneC:itsparametersD:itsvariables
答案:NoneThescopeofavariableistheareaoftheprogramwhereitmaybereferenced.()
A:错B:对
答案:对InPython,afunctioncanreturnonlyonevalue.()
A:对B:错
答案:错
第七章单元测试
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:错B:对
答案:错Iftherewasnobareexceptattheendofatrystatementandnoneoftheexceptclausesmatch,theprogramwouldstillcrash.()
A:错B:对
答案:对
第八章单元测试
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:对B:错
答案:对Asentinelloopshouldnotactuallyprocessthesentinelvalue.()
A:错B:对
答案:对
第九章单元测试
()
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:错B:对
答案:对Spiraldevelopmentisanalternativetotop-downdesign.()
A:对B:错
答案:错
第十章单元测试
Amethoddefinitionissimilartoa(n)()
A:loopB:importstatementC:moduleD:functiondefinition
答案:functiondefinitionWhichofthefollowingmethodsisNOTpartoftheButtonclassinthischapter?()
A:activateB:deactivateC:clickedD:setLabel
答案:setLabelWhichofthefollowingmethodsispartoftheDieViewclassinthischapter?()
A:clickedB:setValueC:activateD:setColor
答案:setValueNewobjectsarecreatedbyinvokingaconstructor.()
A:错B:对
答案:对
A:错B:对
答案:错
第十一章单元测试
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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 冬休安全应急预案范文(5篇)
- 童装市场趋势洞察-洞察分析
- 连接器-材料知识培训课件
- 关于节约粮食国旗下讲话稿(17篇)
- 六年级《各具特色的民居》课件
- 汽车设计-课程设计-离合器设计
- 办公空间设计中的天文元素运用
- 农业科技成果转化的新机遇与挑战
- 健康生活家庭健身器材全解析
- 企业内部如何进行创新成果的评估与保护
- 2024秋国开《管理学基础》形考任务(1234)试题及答案
- 叉车安全管理
- 考试安全保密培训
- 江苏省扬州市2023-2024学年高一上学期期末考试物理试题(含答案)
- 2024年时事政治题库附参考答案(综合题)
- 数字化年终述职报告
- 消防车换季保养计划
- 股东会表决票-文书模板
- 肉牛育肥基地建设项目可行性研究报告书
- 电力土建安全质量培训
- 2022-2023学年山东省济南市高一上学期期末考试化学试题(解析版)
评论
0/150
提交评论