• 2022-06-08 问题

    下列代码的运行结果是______ <script> var x = 1; function test() { var x = 2; y = 3; document.write(x); } test(); document.write(x); document.write(y); </script>

    下列代码的运行结果是______ <script> var x = 1; function test() { var x = 2; y = 3; document.write(x); } test(); document.write(x); document.write(y); </script>

  • 2021-04-14 问题

    请阅读下面的程序 public class Test { public static void main(String[] args) { int x; int y; for (x = 1, y = 1; x <= 100; x++) { if (y >= 20) { break; } if (y % 3 == 1) { y += 3; continue; } y -= 5; } System.out.println(“x=” + x + “,y=” + y); } } 下列选项中,哪一个是程序的运行结果( )

    请阅读下面的程序 public class Test { public static void main(String[] args) { int x; int y; for (x = 1, y = 1; x <= 100; x++) { if (y >= 20) { break; } if (y % 3 == 1) { y += 3; continue; } y -= 5; } System.out.println(“x=” + x + “,y=” + y); } } 下列选项中,哪一个是程序的运行结果( )

  • 2022-05-31 问题

    若要求:当数学式3 A: if(x>3)if(x<7)y=1; B: if(x>3||x<7)y=1; C: if(x<3);elseif(x<7)y=1 D: if(!(x<=3))y=y;elseif(7>x)y=1;

    若要求:当数学式3 A: if(x>3)if(x<7)y=1; B: if(x>3||x<7)y=1; C: if(x<3);elseif(x<7)y=1 D: if(!(x<=3))y=y;elseif(7>x)y=1;

  • 2021-04-14 问题

    (06-03)在Java中,以下程序编译运行后的输出结果为( )。 public class Test { int x, y; Test(int x, int y) { this.x = x; this.y = y; } public static void main(String[] args) { Test pt1, pt2; pt1 = new Test(3, 3); pt2 = new Test(4, 4); System.out.print(pt1.x + pt2.x); } }

    (06-03)在Java中,以下程序编译运行后的输出结果为( )。 public class Test { int x, y; Test(int x, int y) { this.x = x; this.y = y; } public static void main(String[] args) { Test pt1, pt2; pt1 = new Test(3, 3); pt2 = new Test(4, 4); System.out.print(pt1.x + pt2.x); } }

  • 2022-06-15 问题

    class Test{int x;static int y;static void Main(){Test t = new Test();t.x = 1;t.y = 1;test.x = 1;test.y = 1;}}以上程序中共有几句错误() A: 1 B: 2 C: 3 D: 4

    class Test{int x;static int y;static void Main(){Test t = new Test();t.x = 1;t.y = 1;test.x = 1;test.y = 1;}}以上程序中共有几句错误() A: 1 B: 2 C: 3 D: 4

  • 2022-07-27 问题

    请将[img=111x25]17de91575ad9932.png[/img]写成程序表达的形式: A: y = (x - 1)(x + 3) B: y = (x - 1) * (x + 3) C: y = (x - 1) x (x + 3) D: y = (x - 1) . (x + 3)

    请将[img=111x25]17de91575ad9932.png[/img]写成程序表达的形式: A: y = (x - 1)(x + 3) B: y = (x - 1) * (x + 3) C: y = (x - 1) x (x + 3) D: y = (x - 1) . (x + 3)

  • 2022-06-04 问题

    下面程序段中正确的是( )。 A: If x<0 Then y=0 If x<1 Then y=1 If x<2 Then y=2 If x>=2 Then y=3 B: If x>=2 Then y=3 If x>1 Then y=2 If x>=0Then y=1 If x>0 Then y=0 C: If x<0 Then y=0 Else If>=0Then y=1 Else y=3 End If D: If x>=2 Then y=3 Else If>=1 Then y=2 Else y=0 End If

    下面程序段中正确的是( )。 A: If x<0 Then y=0 If x<1 Then y=1 If x<2 Then y=2 If x>=2 Then y=3 B: If x>=2 Then y=3 If x>1 Then y=2 If x>=0Then y=1 If x>0 Then y=0 C: If x<0 Then y=0 Else If>=0Then y=1 Else y=3 End If D: If x>=2 Then y=3 Else If>=1 Then y=2 Else y=0 End If

  • 2022-06-19 问题

    已知int x=1,y=2,z=3;执行if(x&gt;y) z=x;x=y;y=z;后x,y,z的值为( ) A: x=1,y=2,z=3 B: x=2,y=3,z=3 C: x=2,y=3,z=1 D: x=2,y=3,z=2

    已知int x=1,y=2,z=3;执行if(x&gt;y) z=x;x=y;y=z;后x,y,z的值为( ) A: x=1,y=2,z=3 B: x=2,y=3,z=3 C: x=2,y=3,z=1 D: x=2,y=3,z=2

  • 2022-06-19 问题

    已知x=1,y=2,z=3,执行下列语句if(x&gt;y) z=x;x=y;y=z;则x,y,z的值分别是 A: x=1,y=2,z=3 B: x=2,y=3,z=1 C: x=2,y=2,z=1 D: x=2,y=3,z=3

    已知x=1,y=2,z=3,执行下列语句if(x&gt;y) z=x;x=y;y=z;则x,y,z的值分别是 A: x=1,y=2,z=3 B: x=2,y=3,z=1 C: x=2,y=2,z=1 D: x=2,y=3,z=3

  • 2022-06-18 问题

    已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2

    已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2

  • 1 2 3 4 5 6 7 8 9 10