Your own health and safety is the most important thing to you and to your doctor.
A.Y
B.N
C.NG
第1题
执行下列程序段之后,输出的结果是()。 public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System. out. println(C); } }
A.2
B.1
C.-1
D.-2
第2题
执行下列程序段之后,输出的结果是______。 public class Test8 { public StatiC void main (String[] args) { byte a=2; short b=3; long c=4; c=a%b*4%b; System.out.println (c); } }
A.2
B.1
C.-2
D.-1
第3题
执行下列程序段后输出的结果是【 】。 public class Test{ public static void main(String args[]){ int x,y; for(y=1,x=1;y<=50;y++){ if(x>=10)break; if(x%2==1){ x+=5: continue; } x-=3; } System.out.println(y); } }
第4题
下面程序段的输出结果是()。 public class Test { public static void main (String[] args) { for (int a=0;a<10;a++) { if (a==5) break; System.out.println(A); } } }
A.01234
B.6789
C.012346789
D.5
第5题
执行下面程序后输出的正确结果是public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%3.0); }}
A.1,1
B.1,1.0
C.1.0,1
D.1.0,1.0
第6题
下面程序段的输出结果是 public class Test{ public static void main(String args[]){ int a,b; for(a=1,b=1;a<=100;a++){ if(b>=10)break; if(b%2==1){ b+=2; continue; } } System.out.println(a) ; } }
A.5
B.6
C.7
D.101
第7题
下面程序段的输出结果是()。 public class Test { public static void main (String[] args) { int j=2,i=5; while (j<i--) j++; System.out.println(j);} }
A.2
B.3
C.4
D.5
第8题
执行下列程序段之后,变量n的值为()。 public class Test { public static void main(String[ ] args){ int y = 2; int z = 3; int n = 4; n=n+-y* z/n; System.out.println(n); } }
A.3
B.-1
C.-12
D.-3
第9题
下面程序段的输出结果是()。 public class Test { public static void main (String[] args) { int n=10; do { System.out.println("n is"+n); }while(--n>10); } }
A.n is 8
B.没有输出
C.n is 10
D.n is 9
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!