暨南大学C语言样题.doc

暨南大学C语言样题.doc

ID:57301166

大小:167.50 KB

页数:7页

时间:2020-08-10

暨南大学C语言样题.doc_第1页
暨南大学C语言样题.doc_第2页
暨南大学C语言样题.doc_第3页
暨南大学C语言样题.doc_第4页
暨南大学C语言样题.doc_第5页
资源描述:

《暨南大学C语言样题.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、I.True/False1.(F)Identifiersconsistoflettersanddigitsinanyorder,butmustbeinlowercase.2.(T)Wecreatemodularprogramsbecausetheyareeasiertodevelop,correctandmodify.3.(F)Allcomputersusetwicetheamountofstoragefordoubleprecisionthanfloatingpointdatatype4.(F)Staticvariableisnotcreate

2、danddestroyedeachtimethefunctioniscalled,itisthedefaultstorageclassusedbyC.5.(T)AcompoundstatementmaybeusedanywhereinCprograminplaceofasinglestatement.6.(F)InClanguage,alloperatorsarebinaryoperatorwhichconnectingtowoperandsside-by-side.7.(T)TheEscapeSequenceisacombinationsofa

3、backslash()andacharacterthattellsthecompilestoescapefromthewaysthesecharacterwouldbenormallyinterpreted8.(T)Externstorageclassistoextendthescopeofaglobalvariablebeyonditsnormalboundary-file.itdoesnotcausethecreationofanewvariable.9.(F)Afterdefined,thesymbolicnamescanbeusedin

4、anystatementandtheprogramcanchangethevalueofthesymbolicnames.10.(T)Themistakeofusingtheassignmentoperator”=”inplaceoftherelationaloperator”==”resultsinainvalidCexpressionII.Choice11.(C)Forthealgebraicexpression3ae/bc,whichofthefollowingCexpressionisinvalidA)a/b/c*e*3B)3*a*e/b

5、/cC)3*a*e/b*cD)a*e/c/b*312.(D)Forthedeclarations:charw;intx;floaty;doublez;thedatatypeofthevalueofw*x+z-yisA)floatB)charC)intD)double13.(B)Forfollowingdeclaration,whichexpressionwillnotresultin3?intx[10]={0,1,2,3,4,5,6,7,8,9},*p1;A)x[3]B)p1=x+3,*p1++C)p1=x+2,*(p1++)D)p1=x+2,*

6、++p114.(A)Whichoneisnotendlessloop?A)for(y=0,x=1;x>++y;x=i++)i=x;B)for(;;x++=i);C)while(1){x++;}D)for(i=10;;i--)sum+=i;11.(B)Theresultofthefollowingprogramismain(){inta=-2,bdo{b=++a;if(!b)printf(“#”);elseprintf(“*”);}while(a<1)}A}#*#B}*#*C)###D)***12.(D)Whichoneofthefollowing

7、functionsisvalid?A)doublefun(intx,inty){z=x+y;returnz;}B)fun(intx,y){intz;returnz;}C)fun(x,y){intx,y;doublez;z=x+y;returnz;}D)doublefun(intx,inty){doublez;z=x+y;returnz;}13.(D)InasourcecodesfileofClanguage,ifavariablecanonlybeusedbyallfunctionswiththefileitself,thestorageclas

8、softhevariableisA)externB)registerC)autoD)static14.(B)TheCprogrammin

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。