网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
publicclassArrayTest{2.publicstaticvoidmain(String[]args){3.floatf1[],f2[];4.f1=newfloat[10];5.f2=f1;6.System.out.printIn(f2[0]=”+f2[0]);7.}8.}Whatistheresult?()
A.Itprintsf2[0]=0.0
B.Itprintsf2[0]=NaN
C.Anerroratline5causescompiletofail.
D.Anerroratline6causescompiletofail.
E.Anerroratline6causesanexceptionatruntime.
参考答案
更多 “ publicclassArrayTest{2.publicstaticvoidmain(String[]args){3.floatf1[],f2[];4.f1=newfloat[10];5.f2=f1;6.System.out.printIn(f2[0]=”+f2[0]);7.}8.}Whatistheresult?() A.Itprintsf2[0]=0.0B.Itprintsf2[0]=NaNC.Anerroratline5causescompiletofail.D.Anerroratline6causescompiletofail.E.Anerroratline6causesanexceptionatruntime. ” 相关考题
考题
有以下程序#include stdio.hmain(){ int f,f1,f2,i;f1=0;f2=1;printf("%d %d ",f1,f2);for(i=3;i=5;i++){ f=f1+f2; printf("%d",f);f1=f2; f2=f;}printf("\n");}程序运行后的输出结果是 【 1 0 】 。
考题
publicclassArrayTest{publicstaticvoidmain(String[]args){floatfl[],f2[];fl=newfloat[10];f2=f1;System.out.println(f2[0]=+f2[0]);}}Whatistheresult?()
A.Itprintsf2[0]=0.0.B.Itprintsf2[0]=NaN.C.Anerroratline5causescompiletofail.D.Anerroratline6causescompiletofail.E.Anerroratline6causesanexpectationatruntime.
考题
publicclassArrayTest{publicstaticvoidmain(Stringargs){floatf1,f2;f1=newfloat[10];f2=f1;System.out.printIn(f2[0]=”+f2[0]);}}Whatistheresult?()
A.Itprintsf2[0]=0.0B.Itprintsf2[0]=NaNC.Anerroratline5causescompiletofail.D.Anerroratline6causescompiletofail.E.Anerroratline6causesanexceptionatruntime.
考题
以下程序的运行结果为______。main(){ int i,f1,f2; f1=f2=1; for(i=0;i<4;i++) { printf("%d %d",f1,f2); f1+=f2; f2+=f1; }}A.1 1 2 3 5 8 13 21B.1 1 2 2 5 5 10 10C.1 2 5 8 9 8 13 21D.0 1 1 2 4 5 15 21
考题
以下程序的输出结果是( )。 include void main() {int f,f1,f2,i; f1=0;f2=1; printf("%
以下程序的输出结果是( )。 include<stdio.h> void main() {int f,f1,f2,i; f1=0;f2=1; printf("%d%d",f1,f2); for(i=3;i<=5;i++) {f=-f1+f2,printf("%d",f); f2=f1;f1=f; } printf("\n"); }
考题
带传动中,带速v<10m/s,紧边拉力为F1,松边拉力为F2。当空载时,F1 和F2 的比值是_________。A.F1/F2≈0B.F1/F2≈1C.F1/F2≈eα1 fD.1<F1/F2≈eα1 f
考题
4、4、带传动中,带速v<10m/s,紧边拉力为F1,松边拉力为F2。当空载时,F1和 F2的比值是________A.F1/F2≈0B.F1/F2≈1C.F1/F2≈efα1D.1<F1/F2≈efα
热门标签
最新试卷