您所在位置: 网站首页 / 文档列表 / C/C++资料 / 文档详情
c语言练习2.doc 立即下载
上传人:yy****24 上传时间:2024-09-06 格式:DOC 页数:7 大小:38KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

c语言练习2.doc

c语言练习2.doc

预览

在线预览结束,喜欢就下载吧,查找使用更方便

16 金币

下载文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

TestBankChapter2TheBasicsofC—MathFunctions,andInput/OutputMultipleChoiceQuestionsWhichofthefollowingisavalidCdeclarationstatement?a.Lengths:L1,L2,L3b.int,,c.intl1,l2,l3;d.realalpha,beta,gamma;Whichofthefollowingisaninvalidkeyworda.floatb.intc.returnd.printfOutputonthescreenforthestatementprintf(“month%d”,13);isa.month13b.month1c.month%13d.month13i=0;i++;ThevaluestoredinIafterexecutingtheabovestatementisa.0b.1c.2d.3inti,j;i=5;j=i/2;Thevaluestoredinjafterexecutingtheabovestatementisa.5b.2.5c.3d.2inti,j;i=5;j=i%2;Thevaluestoredinjafterexecutingtheabovestatementisa.5b.2c.1d.2.5inti,j;i=1;printf(“%d”,--i);Theoutputafterexecutingtheabovestatementisa.0b.1c.2d.programcrashinti,j;i=1;printf(“%d”,i++);Theoutputafterexecutingtheabovestatementisa.0b.1c.2d.programcrashinta=5,b=3;a=b+a/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.7b.6c.5d.4Choosethestatementwillread15intovariableifromuserkeyboardinputwhenbeingexecuted:a.printf(“%d”,i);b.scanf(“%d”,i);c.scanf(“15”,i);d.scanf(“%d”,&i);Whatisthenecessaryinputsoastoread15and20intoiandjrespectivelyforthefollowinginputstatement?scanf(“%d:%d”,&i,&j);a.15:20b.1520c.1520d.15-20Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%4d”,10);a.10__b._10_c.__10d.1010Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%.2f”,10.345);a.10.345b.__10.345c.10.34d.10.35Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%7.2f”,-10.345);a.-10.345b.10.345c._10.35d._-10.35Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%.1e”,10000.1);a.1.0e+004b.0.1e+005c.1e+004d.0.100001e6inta;floatb=12.5;a=b/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.6.5b.6c.6.25d.7inta,b=3;a=1.5+(float)b/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.2.5b.2c.3d4inta=3;a+=4;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.3b.4c.12d.7inta=2,b=2;a+=3*b;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.10b.8c.6d.9inta,b,c,d;a=(b=2)*(c=3)/(d=5);printf(“%d
单篇购买
VIP会员(1亿+VIP文档免费下)

扫码即表示接受《下载须知》

c语言练习2

文档大小:38KB

限时特价:扫码查看

• 请登录后再进行扫码购买
• 使用微信/支付宝扫码注册及付费下载,详阅 用户协议 隐私政策
• 如已在其他页面进行付款,请刷新当前页面重试
• 付费购买成功后,此文档可永久免费下载
年会员
99.0
¥199.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用

手机号注册 用户名注册
我已阅读并接受《用户协议》《隐私政策》
已有账号?立即登录
我已阅读并接受《用户协议》《隐私政策》
已有账号?立即登录
登录
手机号登录 微信扫码登录
微信扫一扫登录 账号密码登录

首次登录需关注“豆柴文库”公众号

新用户注册
VIP会员(1亿+VIP文档免费下)
年会员
99.0
¥199.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用