[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fLNzI507t16_CbiSBkNNi-s-Rjjd7aw5Bl0uLjWmuuTM":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2023-06-05 13:52:25",47083929,[8,9,10,11],"0.250000","0.500000","0.000000","1.000000",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},36,"87655d278478862060ec4c74c07ba7dc","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fd7215a6f9b18cc01f824b38b31b8c383.jpg","C语言程序设计(2023年春季)","work_25795223","5.选择结构","y=1.0\u002Fx; else y=10.0; printf(&quot;%f\\n&quot;,y); } 若运行时从键盘上输入2.0(表示回车),则上面程序的输出结果是",[21,32,40,49,58,67,74,83,86,91],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],47083922,[25,26,27,28],"语法错","&quot;假&quot;","0","1","已知x=43,ch='A',y=0;则表达式(x &gt; = y&amp;&amp;ch &lt; 'B'&amp;&amp;!y)的值是","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":39,"source":30,"type":31},[],47083923,[36,37,38,28],"4","3","2","设有:int a=1,b=2,c=3,d=4,m=2,n=2; 执行 (m=a &gt; b)&amp;&amp;(n=c &gt; d)后n的值是",{"answer":41,"createTime":5,"id":42,"options":43,"question":48,"source":30,"type":31},[],47083924,[44,45,46,47],"a &lt; b &lt; 0","a=0 &lt; b","a=b &lt; 0","0 &gt; a &gt; b","t=5; else t=2*s; printf(&quot;t=%d\\n&quot;,t); }",{"answer":50,"createTime":5,"id":51,"options":52,"question":57,"source":30,"type":31},[],47083925,[53,54,55,56],"if(a &gt; b &gt; c) temp=a","if((a=b) &gt; 0) temp=a","int a=b=c=4","int a;scanf(%d,a)","下列语句正确的是( )",{"answer":59,"createTime":5,"id":60,"options":61,"question":66,"source":30,"type":31},[],47083926,[62,63,64,65],"switch(a); { case 1 printf(&quot;*\\n&quot;); case 2 printf(&quot;**\\n&quot;);}","switch(b) { case a: printf(&quot;*\\n&quot;); default: printf(&quot;\\n&quot;); case b: printf(&quot;**\\n&quot;);}","switch(w){case1.0: printf(&quot;*\\n&quot;); case2.0: printf(&quot;**\\n&quot;); }","switch(a+b){ case 1: printf(&quot;*\\n&quot;); case 2: printf(&quot;**\\n&quot;); default: printf(&quot;\\n&quot;); }","若有定义: float w; int a, b; 则合法的switch语句是",{"answer":68,"createTime":5,"id":69,"options":70,"question":73,"source":30,"type":31},[],47083927,[71,38,28,72],"41","331","printf(&quot;%d&quot;,++z); else printf(&quot;%d&quot;,++y); printf(&quot;%d\\n&quot;,x++); } 程序的运行结果是________",{"answer":75,"createTime":5,"id":76,"options":77,"question":82,"source":30,"type":31},[],47083928,[78,79,80,81],"l,3,3","1,3,2","3,2,1","1,2,3","printf(&quot;%d,%d,%d\\n&quot;,a,b,c); else printf(&quot;%d,%d,%d\\n&quot;,a,b,c); else printf(&quot;%d,%d,%d\\n&quot;,a,b,c); } 程序运行后的输出结果是________",{"answer":84,"createTime":5,"id":6,"options":85,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":87,"createTime":5,"id":88,"options":89,"question":90,"source":30,"type":31},[],47083930,[28,37,27,38],"c=0; else c++ ; printf(&quot;%d\\n&quot;,c); } 该程序的输出结果是",{"answer":92,"createTime":5,"id":93,"options":94,"question":99,"source":30,"type":31},[],47083931,[95,96,97,98],"在其之前未配对的if","缩排位置相同的if","在同一行上的if","其上面距它最近的,并且没有其他else与其配对的if相配对","为避免嵌套的条件分支语句if&hellip;else的二义性,C语言规定,C程序中的 else总是与()组成配对关系"]