A.0
B.1
C.2
D.3
[单选题]下列语句序列执行后,k的值是( )。 public class Test{ public static void main(String[] args) { int m=3, n=6, k=0; while((m++)<(n--)) ++k; System.out.println(k); } }A.0B.1C.2D.3
[单选题]下列语句序列执行后,K的值是______。 public class Test11 { public static void main(String[] args) { int m=3, n=6, k=0; while ((m++)<(n--)) ++k; System.out.println (k); } }A.0B.1C.2D.3
[单选题]下列语句序列执行后,k的值是______。 public class Testll { public static void main(String[] args) { int a=10, b=18, c=30; switch(b%a){ case 7: c--;break; case 8: c-=2;break; case 9: c-=3;break; default: c * =b;break; } System.out.println(c); } }A.28B.27C.29D.540
[单选题]下列语句序列执行后,k的值是 ( ) public class c9{ public static void main(String[]args){ int a=10,b=18,c=30; switch(b%A) { case 7:c--;break case 8:c-=2;break; case 9:c-=3;break; default : c * =b;break; } System.out.println(C) ; } }A.28B.29C.27D.540
[单选题]下列语句序列执行后,k的值是( )。 public class c6{ public static void main(String[ ] args) { int a=10, b=18, c=30; switch (b% A) { case 7: c--; break; case 8: c-=2; break; case 9: c-=3; break; default: c* =b; break; } System.out.println (c); } }A.28B.29C.27D.30
[单选题]下列程序执行后,k的值是 public class Testhhh { public static void main(String args[ ]) { inti=6,j=8,k=10,m=7; if(i>j| |mA.12B.11C.10D.9
[单选题]执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){ int d=101; int b=220; long a=321; System.out.println((a-b)/(a-b-d)); } }A.ArraylndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExceptionD.EOFExcepfion
[单选题]下列代码的执行结果为( )。 public class Test1 { public static void main(String args[]){ hat a=3,b=10; System.out.println((a++)*(--b)); }A.40B.36C.30D.27
[单选题]下列程序执行后,chl的值是 public class Testccc{ public static void main(Stringargsr[]) { char chl='A',ch2='T'; if(chi十5 System.out.println(chl); } }A.'A'B.'B'C.'C'D.B
[单选题]下列程序执行后,j的值是 public class Testggg { public static void main(String args[ ]) { int j=1; for(int i=7;i>0;i-=2) j * =2; System.out.println(j); } }A.15B.1C.32D.16