A.大戟、芫花、甘遂
B.柴胡、香附、青皮
C.三棱、莪术
D.五灵脂、延胡索
第1题
下列程序的运行结果是()。 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.1
B.2
C.3
D.0
第2题
下列程序运行后的输出结果是()。 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.6
B.5
C.4
D.3
第3题
下列程序的运行结果是()。 public class Sun { public static void main(String args[]) { int a=1; int b=1; for(int i=1;i<=3;i++) { a=a+b; b=b+a; } System.out.println(a+" "+b); } }
A.66
B.5 8
C.13 21
D.34 55
第4题
下列程序的运行结果是()。 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.1
B.2
C.3
D.0
第5题
下列程序的运行结果是()。 public class Sun { public static void main(String args[]) { int a=1; int b=1; for(int i=1;i<=3;i++) { a=a+b; b=b+a; } System.out.println(a+" "+B) ; } }
A.6 6
B.5 8
C.13 21
D.34 55
第6题
下列程序运行后的输出结果是()。 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.6
B.5
C.4
D.3
第7题
下列程序的运行结果是()。 Public class sun { Public static void main(String args[]) { int x=4,y=0; if(Math.pow(X,2)= =16) y—x ; if(Math.pow(X,2)<15) y—l/x; if(Math.pow(X,2)>15) y=(int)Math.pow(X,2)+1; system.out.println(y); } }
A.4
B.17
C.18
D.0.25
第8题
运行下面程序后,正确的输出结果是()。
public class Sun
{
public static void main(String args[ ])
{
int x=6;
if(x>6)
System.out.println("x>6");
else
if(x<8)
System.out.println("x<8");
else
if(x==6)
System.out.println("x=6");
}
}
A.x<8x=6
B.x<8
C.x=6
D.x<8或x=6
第9题
下列程序运行后的输出结果是()。 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,20
B.20110
C.110,20
D.200110
第10题
下列程序的运行结果是【 】。
public class Test {
public static void main (String args[]) {
String s1="hello!";
System.out.println (s1.toUpperCase());
}}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!