[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fKH8iPHokeklWUIzf7-uGhqukyI2ToYn1vi5ps2hELAE":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-07-09 22:48:46",212617789,[8,9,10,11],"default","anyelse","break","goto",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},14,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","4b3f5c88a7d84fe294e9e9fa4c201d31","分支结构程序设计单元测试","在C#中switch语句用( )关键字来处理不匹配case语句的值",[21,32,35,44,53,62,71,80,89,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],212617788,[25,26,27,28],"逻辑表达式","条件表达式","算术表达式","布尔类型的表达式","C#中if语句后面的表达式不能是( )","v1",0,{"answer":33,"createTime":5,"id":6,"options":34,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":36,"createTime":5,"id":37,"options":38,"question":43,"source":30,"type":31},[],212617790,[39,40,41,42],"a=2,b=1","a=1,b=1","a=1,b=0","a=2,b=2","以下程序的运行结果是( ) static void Main(string[] args) { int x = 1, a = 0, b = 0; switch (x) { case 0:b++;break; case 1:a++; break; case 2:a++; b++; break; } Console.WriteLine(&quot;a={0},b={1}&quot;, a, b); Console.ReadKey(); }",{"answer":45,"createTime":5,"id":46,"options":47,"question":52,"source":30,"type":31},[],212617791,[48,49,50,51],"if(gender==&quot;男&quot; || age&lt;40 &amp;&amp; duty==&quot;副教授&quot;) n=n+1","if(gender==&quot;男&quot;&amp;&amp; age&lt;40 &amp;&amp; duty==&quot;副教授&quot;) n=n+1","if(gender==&quot;男&quot; &amp;&amp; age&lt;40 || duty==&quot;副教授&quot;) n=n+1","if(gender==&quot;男&quot; || age&lt;40 or duty==&quot;副教授&quot;) n=n+1","下面if语句统计满足&quot;性别(gender)为男,职称(duty)为副教授,年龄(莆)小于40岁&quot;条件的人数,正确的语句是( )",{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],212617792,[57,58,59,60],"maxNum=(x&gt;y)?x:y","if(x&gt;y) maxNum=x; else maxNum=y","maxNum=Math.Max(x,y)","if(y&gt;x) maxNum=y; maxNum=x","下面程序段求两个数x和y中的大数,不正确的是( )",{"answer":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],212617793,[66,67,68,69],"if(x&gt;=1) f=2*x+1; f=3*x\u002F(x-1)","if(x&gt;=1) f=2*x+1; if(x&lt;1) f=3*x\u002F(x-1)","f=3*x\u002F(x-1); if(x&gt;=1) f=2*x+1","if(x&lt;1) f=3*x\u002F(x-1); else f=2*x+1","用if语句表示如下分段函数 f(x),下面不正确的程序是 \u003Cimg src=\"https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F47616eb2de87e5aba4dbc9b5ad8e0d1d.png\">",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":30,"type":31},[],212617794,[75,76,77,78],"0","-300","200","300","以下程序的输出结果是( ) static void Main(string[] args) { int x=200,y=-10,z=300; if(x&lt;y) if(y&lt;0) z=-z; else z+=10; Console.WriteLine(&quot;{0}&quot;,z); Console.ReadKey(); }",{"answer":81,"createTime":5,"id":82,"options":83,"question":88,"source":30,"type":31},[],212617795,[84,85,86,87],"8","9","81","64","以下程序的输出结果是 static void Main(string[] args) { int a=8,b=9,t; t=a; if(a&lt;b) t=b; t*=t; Console.WriteLine(&quot;{0}&quot;, t); Console.ReadKey(); }",{"answer":90,"createTime":5,"id":91,"options":92,"question":97,"source":30,"type":31},[],212617796,[93,94,95,96],"####","****","有语法错误","无输出结果","下列程序运行后的输出结果是( ) static void Main(string[] args) { int x1=1,x2=0,x3=0; if(x1=x2+x3) Console.WriteLine(&quot;****&quot;); else Console.WriteLine(&quot;####&quot;); Console.ReadKey(); }",{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":30,"type":31},[],212617797,[102,103,104,105],"red","yellow","green","red,yellow","如果x=30,y=75,以下代码段的输出结果是( ). if(x&lt;-10 || x &gt; 30) { if (y &gt;= 100) { Console.WriteLine(&quot;red&quot;); } else { Console.WriteLine(&quot;yellow&quot;); } } else { Console.WriteLine(&quot;green&quot;); }"]