[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fr0dtwNaDF-bZWF55rETQDPM4PRvkGEROEh-_YQW6tpo":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":24,"type":25},[],"2025-06-11 12:19:09",198307708,[8,9,10,11],"必须是关系表达式","必须是逻辑表达式或关系表达式","可以是任意合法的表达式","必须是逻辑表达式",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},45,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","work_44163328","课堂作业2","以下是if语句的基本形式: if(表达式) 语句 其中&quot;表达式&quot;",[21,26,35,45,54,64,73,82,91,98],{"answer":22,"createTime":5,"id":6,"options":23,"question":19,"source":24,"type":25},[],[8,9,10,11],"v1",0,{"answer":27,"createTime":5,"id":28,"options":29,"question":34,"source":24,"type":25},[],198307732,[30,31,32,33],"不等于10的整数","小于3的整数","大于3或等于10的整数","大于3并且不等于10的整数","有以下程序 #include &lt;stdio.h&gt; void main( ) { int x; scanf(&quot;%d&quot;,&amp;x); if(x&lt;=3) ; \u002F*此处单独写一个分号代表&quot;空语句&quot;,就是执行空操作的意思*\u002F else if(x!=10) printf(&quot;%d\\n&quot;,x); } 程序运行时,输入的值在哪个范围才会有输出结果( )",{"answer":36,"createTime":37,"id":38,"options":39,"question":44,"source":24,"type":25},[],"2025-06-11 12:19:10",198307747,[40,41,42,43],"switch(a+b); { case 1:y=a+b;break; case 0:y=a-b;break; }","switch a { case c1:y=a-b;break; case c2:x=a*b;break; default:x=a+b; }","switch(a*a+b*b) { case 3: case 1:y=a+b;break; case 3:y=b-a;break; }","switch(a-b) { default:y=a*b;break; case 3:case 4:x=a+b;break; case10:case 1:y=a-b;break; }","若a,b,c1,c2,x,y均为整型变量,正确的switch语句是( )",{"answer":46,"createTime":37,"id":47,"options":48,"question":53,"source":24,"type":25},[],198307752,[49,50,51,52],"缩排位置相同的if","在其之前未配对的if","在其之前未配对的最近的if","同一行上的if","为了避免嵌套的条件分支语句if&hellip;else的二义性,C语言规定:C程序中的else总是与( )组成配对关系",{"answer":55,"createTime":56,"id":57,"options":58,"question":63,"source":24,"type":25},[],"2025-06-11 12:19:11",198307760,[59,60,61,62],"输出****","输出# # # #","有语法错误,不能通过编译","可以通过编译,但是不能通过连接,因而不能运行","下面程序的输出结果是( ). #include &lt;stdio.h&gt; int main( ) { int x=3,y=0,z=0; if(x==(y+z)) printf(&quot;****&quot;); else printf(&quot;####&quot;); }",{"answer":65,"createTime":56,"id":66,"options":67,"question":72,"source":24,"type":25},[],198307773,[68,69,70,71],"10 20","10 10","20 10","20 0","下面程序的输出结果是( ). #include &lt;stdio.h&gt; void main( ) { int x=10,y=20,t=0; if(x==y) t=x; x=y; y=t; printf(&quot;%d %d\\n&quot;,x,y); }",{"answer":74,"createTime":56,"id":75,"options":76,"question":81,"source":24,"type":25},[],198307781,[77,78,79,80],"0","True","不知道a的值,不能确定","1","若a是数值类型,则逻辑表达式(a==1)||(a!=1)的值是( )",{"answer":83,"createTime":84,"id":85,"options":86,"question":90,"source":24,"type":25},[],"2025-06-11 12:19:12",198307789,[87,80,88,89],"3","4","2","假定 w、x、y、z、min均为int型变量,有如下程序段: w=1; x=2; y=3; z=4; min=(w&lt;x)?w:x; min=(min&lt;y)?min:y; min=(min&lt;z)?min:z; 则该程序段执行后,m的值是______",{"answer":92,"createTime":84,"id":93,"options":94,"question":97,"source":24,"type":25},[],198307800,[77,95,96,80],"false","true","有如下程序段int a=14,b=15,x;char c='A';x=(a &amp;&amp; b) &amp;&amp; (c&lt;'B');执行该程序段后,x的值为______",{"answer":99,"createTime":84,"id":100,"options":101,"question":106,"source":24,"type":25},[],198307809,[102,103,104,105],"k=(a&lt;b)?( (a&lt;c)?a:c):((b&lt;c)?b:c)","k=(a&lt;b)?a:b;k=(b&lt;c)?b:c","k=(a&lt;b)?a:b; k=(a&lt;c)?a:c","k=(a&lt;b)?( (b&lt;c)?a:b):((b&gt;c)?b:c)","有如下嵌套的if语句: if(a&lt;b) if(a&lt;c)k=a; else k=c; else if(b&lt;c)k=b; else k=c;以下选项中与上述语句等价的语句是( )"]