0.0
0.0f
null
false
第1题:
A.float[]=newfloat(3);
B.floatf2[]=newfloat[];
C.float[]f1=newfloat[3];
D.floatf3[]=newfloat[3];
E.floatf5[]={1.0f,2.0f,2.0f};
F.floatf4[]=newfloat[]{1.0f.2.0f.3.0f};
第2题:
设变量a是int型,f是float型,i是double型,则表达式10+'a'+i*f的值的数据类型为( )。
A.int
B.float
C.double
D.不确定
第3题:
设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定
第4题:
float[]f=newfloat[10],则f[0]的值为()
第5题:
public static void parse(String str) { try { float f= Float.parseFloat(str); } catch (NumberFormatException nfe) { f= 0; } finally { System.out.println(f); } } public static void main(String[] args) { parse(”invalid”); } What is the result?()
第6题:
float f[][][] = new float[3][][]; float f0 = 1.0f; float[][] farray = new float[1][1]; What is valid?()
第7题:
F[x]中,若f(x)+g(x)=3,则f(0)+g(0)=()。
第8题:
下面关于float数的定义错误的是()
第9题:
2000.0f
0.0f
null;
2000
第10题:
第11题:
0.0
Compilation fails.
A ParseException is thrown by the parse method at runtime.
A NumberFormatException is thrown by the parse method at runtime.
第12题:
It prints f2[0] = 0.0
It prints f2[0] = NaN
An error at line 5 causes compile to fail.
An error at line 6 causes compile to fail.
An error at line 6 causes an exception at runtime.
第13题:
A.Itprintsf2[0]=0.0
B.Itprintsf2[0]=NaN
C.Anerroratline5causescompiletofail.
D.Anerroratline6causescompiletofail.
E.Anerroratline6causesanexceptionatruntime.
第14题:
设有定义nit a:float f; double int i,则表达式10+'a'+i+f值的数据类型是( )
A.int
B.float
C.double
D.不确定
第15题:
float f=-123.567F;inti=(int)f.则i的值现在是()。
第16题:
public class ArrayTest { public static void main (Stringargs) { float f1, f2; f1 = new float [10]; f2 = f1; System.out.printIn (“f2[0]=” + f2[0]); } } What is the result?()
第17题:
引用类型的数据字段的缺省值为()
第18题:
假定变量x,f和d的类型分别为int 、float和double。下面表达式的值总是为1的是()
第19题:
设变量a是整型,f是实型,i是双精度型,则表达式10+’a’+i*f值的数据类型为()。
第20题:
1. public class ArrayTest { 2. public static void main (String[]args) { 3. float f1[], f2[]; 4. f1 = new float [10]; 5. f2 = f1; 6. System.out.printIn (“f2[0]=” + f2[0]); 7. } 8. } What is the result?()
第21题:
It prints f2[0] = 0.0
It prints f2[0] = NaN
An error at line 5 causes compile to fail.
An error at line 6 causes compile to fail.
An error at line 6 causes an exception at runtime.
第22题:
x==(int)(float)x
d==(double)(float)d
f==(float)(double)f
(f+d)-f==d
第23题:
f[0] = f0;
f[0] = farray;
f[0] = farray[0];
f[0] = farray[0][0];