A.out for the count
B.out and out
C.out of blast
D.out of whack
第1题
A.3
B.5
C.编译失败
D.运行时异常被抛出
第2题
A.3
B.5
C.编译失败
D.运行时异常被抛出
第3题
A.3
B.5
C.编译失败
D.运行时异常被抛出
第4题
A.3
B.5
C.编译失败
D.运行时异常被抛出
第5题
A.2
B.3
C.4
D.编译失败
第6题
根据变量定义“static int x[5],y[2][3]={9,6,3,1,4,7};”,x[4]=【 】,y[1][2]=【 】。
第7题
有以下程序 include<stdio.h> intfun() {staticintx=l; x*=2:returnx; } main() {inti,s=1; for(i=1;i<=2;i++)s=fun(); printff%d\n,s); } 程序运行后的输出结果是
A.4
B.1
C.0
D.8
第8题
关于以下application的说明,正确的是()。 (1)class StaticStuff (2){ (3)static int x=15; (4)static {x*=3;) (5)public static void main (StringArgs[]) (6){ (7)System.out.println("x="+x); (8)} (9)static{x/=3;} (10) }
A.(4)行与(9)行不能通过编译,因为缺少方法名和返回类型
B.(9)行不能通过编译,因为只能有一个静态初始化器
C.编译通过,执行结果为:x=15
D.编译通过,执行结果为:x=3
第9题
设有如下程序: public class Sun { public static void main(String args[ ]) { int x,y; x=4; y=0; if(Math.pow(x,2)==16) y=x; if(Math.pow(x,2)<15) y=1/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
第10题
A.2 3 4
B.2 5 9
C.3 5 4
D.2 4 3
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!