“运费”栏应填写()。
A.19
B.502/19/2
C.502/19/1
D.USD 70821.63
A.19
B.502/19/2
C.502/19/1
D.USD 70821.63
第1题
下列程序的输出结果是()。 PublicclassTest{ Publicstaticvoidmain(String[]args){ int[]array=(2,4,6,8,10); intsize=6; intresult=-1; try{ for(inti=0;i<size&&result==-1;) if(array[i]==20)result=i; } catch(ArithmeticExceptione){ System.out.println("Catch---1"); } catch(Array IndexOutOfBoundsExceptione){ System.out.println("Catch---2"); } catch(Exceptione){ System.out.println("Catch---3"); } }
A.Catch---1
B.Catch---2
C.Catch---3
D.以上都不对
第2题
下面程序段的输出结果是()。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ intx,y; x=(int)Math.sqrt(5)/2+(int)Math.random()*5/2; Y=(int)Math.sqrt(3)/2+(int)Math.random()*3/2; if(x>y) System.out.println9"x>y"); elseif(x==y) System.out.println("x=y"); else System.out.println("x<y"); } }
A.x>y
B.x=y
C.x<y
D.编译错误
第3题
下列程序的输出结果是()。 PublicclassTest{ Publicstaticvoidmain(String[]args){ int[]array=(2,4,6,8,10); intsize=6; intresult=-1; try{ for(inti=0;i<size&&result==-1;) if(array[i]==20)result=i; } catch(ArithmeticExceptione){ System.out.println("Catch---1"); } catch(Array IndexOutOfBoundsExceptione){ System.out.println("Catch---2"); } catch(Exceptione){ System.out.println("Catch---3"); } }
A.Catch---1
B.Catch---2
C.Catch---3
D.以上都不对
第4题
下列程序输出的结果是______。 int m=17; int fun(int x,int y) { int m=3; return(X*y-m); } main() { int a=5,b=7; printf("%d\n",fun(a,B) /m); }
第6题
第7题
下列程序的输出结果是 #include"iostream" using namespace std; int Max(int a,int b) { if (a > b) return a; else return b; } void main() { int m,n; m=10,n=5; int max=Max(m,n); cout<<max<<endl; }
A.10
B.程序有误
C.1
D.0
第8题
下列程序的输出结果是 #include" iostream" using namespace std; int Max(int a,int b) { if(a > b) else return a; else retum b; } void main() { int m,n; m=10,n=5; int max=Max(m,n); cout < < max < < end
A.10
B.程序有误
C.1
D.0
第9题
A.程序输出的结果是:hello你好
B.程序输出的结果是:hello
C.程序输出的结果是:ok
D.程序输出的结果是:你好
第10题
下列程序的输出结果是_______。
class Test{
public static void main(String args []){
int m=6;
do{m--:}while(m>0);
System.out.println("m="+m);
}
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!