欢迎来到天天文库
浏览记录
ID:56720886
大小:111.50 KB
页数:29页
时间:2020-07-06
《C 语言程序设计自测练习(二).doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、C++languageprogrammingchecklist(b)Amultiple-choiceAfunctioncallcannot().A.appearinanexpressionB.appearinthestatementisexecutedC.asafunctionoftheargumentD.asafunctionoftheshapeparameter2describedinthefollowingcorrect().A.definitionofthefunctioncanbenestedfunctioncallscannotbenestedB.t
2、hedefinitionofthefunctioncannotbenestedfunctioncallscanbenestedC.functiondefinitionsandfunctioncallscanbenestedTheD.functiondefinitionsandfunctioncallsarenotallowedtobenestedThearraynameasanargumentofthefunctioncallispassedtotheparameter().Thefirstelementofthevalueinthearrayinthefirs
3、taddressofthearrayB.A.C.numberofarrayelementsarrayofallelementsofthevalueD.4andthefollowingdescriptionoftheerroris().A.calledfunctionwithoutreturnstatementB.calledfunctioncanbeusedinmorethanonereturnstatementC.thefunctioniscalled,ifthereturnvalue,youmusthaveareturnstatementD.thecalle
4、dfunction,areturnstatementcanreturnmultiplevaluestothecallingfunction5followingacorrectdescriptionof().A.notallowedtosetthedefaultvalueoftheparameterB.setthedefaultvalueoftheparametercanonlybesetwhenthefunctionisdefinedC.Setthedefaultvalueoftheparameter,youshouldsettheparameterstothe
5、rightD.Setthedefaultvalueoftheparameter,shouldalltheparametersaresetThepurposeofoverloadedfunctions().A.sharedB.reducespaceC.increasespeedD.easytouse,andimprovereadabilityThetwostringsareconnectedtogethertoformastring,optional()function.A.strlen()B.strcap()C.strcat()D.strcmp()Correct
6、ly()8.A.Usethe#defineforconstantsdefinedaname,thenameoftheprogramandthengivenanothervalueB.thenameoftheconstantsdefinedusingconsttypeofthepoints,whentheprogramisrun,itsvaluecannotbechangedC.usinginlinefunctionsintheprogramandmaketheprogramlessreadableD.definedfunctionscanbegivenanypo
7、sitionintheformalparameterlistofdefaultparametervalues9.Followingidentifier()isafile-levelscope.A.functionparameterB.statementlabelC.ExternalstaticclassidentifierD.automaticclassidentifierIncorrect()10.A.macroreplacementdoesnottakeuptheruntimeB.macronamestypelessC.macroreplacementonl
8、ycharacterto
此文档下载收益归作者所有