[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fvZN-TyO0pS4hhIgEKv-otd3YguHYSbHtn5ymGidNvCo":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":24,"origin":100,"createTime":26},145954728,"v1","已定义变量a=2,b=4,执行C语句if (a=3) printf(\"%d\",a++); else printf(\" %d\",b-- ); 后,输出的结果为( )",[8,9,10,11],"1","2","3","4",[],[14,27,34,44,50,60,70,76,86,90],{"id":15,"source":5,"question":16,"options":17,"answer":22,"related":23,"type":24,"origin":25,"createTime":26},145954720,"能正确表示a和b同时为正或同时为负的逻辑表达式是( )",[18,19,20,21],"&&(a\u003C0‖b\u003C0)","&&(a\u003C0&&b\u003C0)","&&(ab\u003C=0)","a*b>0",[],[],0,null,"2024-05-25T13:10:30+08:00",{"id":28,"source":5,"question":29,"options":30,"answer":32,"related":33,"type":24,"origin":25,"createTime":26},145954721,"已定义变量int x=2,y=4,max=0,执行C语句if (x\u003Cy) max=x++; else max=y--;后,max 的值是( )",[31,8,9,10],"0",[],[],{"id":35,"source":5,"question":36,"options":37,"answer":42,"related":43,"type":24,"origin":25,"createTime":26},145954722,"已知a=4,b=5,执行C语句if (a\u003Cb) {a=b;b=a;}后,a、b 的值分别是( )",[38,39,40,41],"4,4","5,4","5,5","4,5",[],[],{"id":45,"source":5,"question":46,"options":47,"answer":48,"related":49,"type":24,"origin":25,"createTime":26},145954723,"已定义变量int x=4,y=2,max=0,执行C语句if (x\u003Cy) max=x++; else max=--y;后,max 的值是( )",[31,8,9,10],[],[],{"id":51,"source":5,"question":52,"options":53,"answer":58,"related":59,"type":24,"origin":25,"createTime":26},145954724,"if语句的基本形式是:if(表达式)语句,以下关于\"表达式\"值的叙述中正确的是( )",[54,55,56,57],"必须是逻辑值","必须是整数值","必须是正数","可以是任意合法的数值",[],[],{"id":61,"source":5,"question":62,"options":63,"answer":68,"related":69,"type":24,"origin":25,"createTime":26},145954725,"已定义变量x = 2,y = 4,执行C语句if ((x>y)&&(y>0)) printf(\"x=%d\",x++); else printf(\"y=%d\",y--); 后,输出的结果为( )",[64,65,66,67],"x=2","x=3","y=3","y=4",[],[],{"id":71,"source":5,"question":72,"options":73,"answer":74,"related":75,"type":24,"origin":25,"createTime":26},145954726,"已知a = 4,b = 5,执行C语句 if (a\u003Cb) { a+= b; b=a-b; a-= b; }后,a、b的值分别是( )",[40,39,41,38],[],[],{"id":77,"source":5,"question":78,"options":79,"answer":84,"related":85,"type":24,"origin":25,"createTime":26},145954727,"已定义变量a= 2,b= 4,执行C语句if (a>b||b>0) printf(\" a=%d\",a++); else printf(\" b=%d\",b--); 后,输出的结果为( )",[80,81,82,83],"a=1","a=2","b=3","b=4",[],[],{"id":4,"source":5,"question":6,"options":87,"answer":88,"related":89,"type":24,"origin":25,"createTime":26},[8,9,10,11],[],[],{"id":91,"source":5,"question":92,"options":93,"answer":98,"related":99,"type":24,"origin":25,"createTime":26},145954729,"已知a=-4,b=-5,执行C语句 if (a\u003Cb) {if (a>0) c=a; else c=b;}else {if (b\u003C0) c=a++; else c=--b;}后,c的值是( )",[94,95,96,97],"-3","-6","-5","-4",[],[],{"courseName":101,"courseImg":102,"workName":103,"workId":104,"count":105,"courseId":106},"C语言程序设计","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F703d6aff04a24ebbb83052f286cdaf74.jpg","第4章作业","work_35142284",46,"2bb2478ebeb57bd662a3a9eaaab532bf"]