A.good and abc
B.good and gbc
C.test ok and abc
D.test ok and gbc
[单选题]下列程序的运行结果是( )。 public class Sun { public static void main(String args[ ]) { int number,digits; number=53; if(number<10) digits=1; else if(number<100) digits=2; else diglts=3; System.out.println(digits); } }A.1B.2C.3D.0
[试题]下列程序的运行结果是[ ]。public class Test {public static void main (String args[]) {String s1="hello!";System.out.println (s1.toUpperCase());}}
[单选题]下列程序运行的结果是( )。public class Test { public static void main(String[] args) { int a=2,b=3; System.out.println( (a>b?" *** a =" :" ###b = ") + A) ; } }A.*** a=2B.*** a=3C.### b=2D.### b=3
[单选题]下列程序的运行结果是( )。 public class Sun { public static void main(String args[ ]) { int number,digits; number=53; if(number<10) digits=1; else if(number<100) digits=2; else digits=3; System.out.println(digits); } }A.1B.2C.3D.0
[主观题]写出程序运行的结果Public class BasePublic virtual string Hello() {return “Base”;}Public class Sub:BasePublic override string Hello() {return “Sub”;}1. Base b = new Base(); b.Hello;2. Sub s = new Sub(); s.Hello;3. Base b = new Sub (); b.Hello;4. Sub s = new Ba
[单选题]下列程序运行后的输出结果是( )。 public class Sun { public static void main(String args[]) { int i,j,s; s=0; for(i=1;i<=3;i++) for(j=0;j<=i-1;j++) s=s+1; System.out.println(s); } }A.6B.5C.4D.3
[单选题]下列程序运行后的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int a,b; a=0; b=0; for(int m=1;m<=10;m++) { a=a+1; b=0; for(int j=1;j<=10;j++) { a=a+1; b=b+2; } } System.out.println(a+","+B) ; } }A.10,20B.20110C.110,20D.200110
[单选题]下列程序运行后的输出结果是( )。 public class Sun { public static void main(String args[]) { int a,b; a=0; b=0; for(int m=1;m<=10;m++) { a=a+1; b=0; for(int j=1;j<=10;j++) { a=a+1; b=b+2; } } System.out.println(a+","+b); } }A.10,20B.20110C.110,20D.200110
[单选题]以下程序的运行结果为( )。 public class Sun { public static void main(String args[]) { String x="A",y="B",z="C"; for(int m=1;m<=2;m++) { x=y; y=z; z=x; } System.out.println(x+y+z); } }A.ABCB.BCAC.BCBD.CBC
[单选题]以下程序的运行结果为( )。 public class Sun { public static void main(String args[ ]) { String x="A",y="B",z="C"; for(int m=1;m<=2;m++) { x=y; y=z; z=x; } System.out.println(x+y+z); } }A.ABCB.BCAC.BCBD.CBC