A.VoidsetVar(floatf){x=f;}
B.PublicvoidsetVar(intf){x=f;}
C.PublicvoidsetVar(floatf){x=f;}
D.PublicdoublesetVar(floatf){x=f;}
E.PublicfinalvoidsetVar(floatf){x=f;}
F.ProtectedfloatsetVar(){x=3.0f;return3.0f;}
第1题:
A.VoidsetVar(floatf){x=f;}
B.PublicvoidsetVar(intf){x=f;}
C.PublicvoidsetVar(floatf){x=f;}
D.PublicdoublesetVar(floatf){x=f;}
E.PublicfinalvoidsetVar(floatf){x=f;}
F.ProtectedfloatsetVar(){x=3.0f;return3.0f;}
第2题:
下面关于数组定义语句不正确的是______。
A.inta[]= {1,2,3,4};
B.int[] a1, a2;
C.double[] d = new double [8];
D.float f[] = new {2.0f, 3.5f, 5.6f, 7.8f};
第3题:
11、下面哪些定义是类型正确的?
A.f :: (Integer, Integer) -> Float f (x,y) = x / y
B.f :: (Integer, Integer) -> Float f (x,y) = (fromInteger x) / (fromInteger y)
C.f :: (Integer, Integer) -> Float f (x,y) = 3*x + y
D.f :: (Integer, Integer) -> Integer f (x, y) = 3*x + y
第4题:
下列关于数组定义语句不正确的
A.int[]a1,a2;
B.int a[]={1,2,3,4,5};
C.double[] d=new double[8];
D.float f[]=new {2.0f,3.5f,5.6f,7.8f};
第5题:
下列选项中,编译时会出现错误的是()。
A.double $ d = 6.18 ;
B.int _i = 100 ;
C.boolean 1_flag = true ;
D.float F1= 1.0 f ;