资源描述:
《电子科技大学网络教育专科c语言在线考试答案(国外英语资料)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、电子科技大学网络教育专科C语言在线考试答案One,singlechoicequestion(twopointsperproblem,30points)Thefollowingdescriptioniscorrect(C)TheA.gotostatementcanonlybeusedtofloutthemulti-layercycle.ThecontinuestatementisnotallowedintheB.S.witchstatement.C.onlyusethecontinuestatementtotermi
2、natethecycle.Thebreakstatementdoesnotappearindependentlyintheloopstatement.TheexecutionofACprogramis(A)ThemainfunctionoftheA.Cprogramstartsandendswiththemainfunction.Thefirstfunctionofthisprogrambeginswiththeendofthelastfunctionoftheprogram.Themainfunctionofth
3、isprogrambeginswiththeendofthelastfunctionoftheprogramfile.`D.Thefirstfunctiontostarttheprogram,toendofthemainfunctionofthisprocedure.InC,theoperatormustbeaninteger(C).A.byb.byc.byd.byc.byd.byLet'ssayintIisequalto3,andjisequalto4;Executethestatement:printf("%d
4、,%d,%d","++j");Afterthat,theoutputis:(C)A.7,4,4,4,4,4Thecorrectdescriptionofthebreakstatement.(A)TheA.breakstatementimmediatelyterminatesthewhilestatementinthewhilestatement.TheB.breakstatementcannotbeusedforstatementsoutsideoftheloop.TheC.breakstatementisth
5、esameasthecontinuestatement.D.breakstatementscantakeargumentsornot.IntheClanguage,thefollowingisnottherightconcept(A)Allcircularstatementsrequireatleastoneloop.B.gotoandifstatementsformcircularstatements.Thecyclecanonlycontainandcannotbecrossed.Thecirculatorca
6、nbeastatement.Thefollowingisthecorrectdescriptionofthetwo-dimensionalarraya(C)A.intA.B.Floata(3,4);[4]a[4].Thecorrectdescriptionofthefunction(C)A.youcannestAdefinedfunctioninC.Thecustomfunctionandcallfunctionarenotavailableinasourcefile.Thedefinitionofafunctio
7、nisparallelandindependent.D.cannotnestedcallfunctions.Ifyouuseanarraynameastheargumentforthefunctioncall,it'sA(A)ThefirstelementofthearrayisthefirstelementofthearrayThenumberofelementsinthearrayForint*p;Inta,[].P=a;Legaloperations(C)A.+;B.p=a;P++;That'sequalto
8、a++;C++p;That'sthesamethingasa[1];D.iftheaddressinpis100,p++;Aftertheoperation,thevalueis100Supposeintx[]={1,3,5,7,9,11}.PTR=x;Thefollowingarethecorrectreferencestothearrayelements