首页 > 医卫考试> 健康知识
题目内容 (请给出正确答案)
[主观题]

阅读以下程序,给出运行结果。classMultiCatch{publicstaticvoidmain(Stringargs[]){try{inta=ar

阅读以下程序,给出运行结果。

classMultiCatch{

publicstaticvoidmain(Stringargs[]){

try{

inta=args.length;

intb=44/a;

intc[]={2,6};

c[44]=100;

System.out.println("b="+b);

}catch(ArithmeticExceptione){

System.out.println("除0异常");

}catch(ArrayIndexOutOfBoundsExceptione){

System.out.println("数组超越边界异常");

}finally{

System.out.println("程序执行结束");

}

}

}

运行结果是:

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“阅读以下程序,给出运行结果。classMultiCatch{…”相关的问题
第1题
阅读以下程序,给出运行结果。classPerson{Person(){System.out.print("Thisisaperson.&quo

阅读以下程序,给出运行结果。

classPerson{

Person(){

System.out.print("Thisisaperson.");

}

}

publicclassStudentextendsPerson{

Student(){

System.out.print("Thisisastudent");

}

publicstaticvoidmain(String[]args){

Studentstu=newStudent();

}

}

运行结果是:

点击查看答案
第2题
阅读以下程序,给出运行结果。classA{publicstaticvoidmain(Stringargs[]){intj=0;for(inti=1;i<

阅读以下程序,给出运行结果。

classA{

publicstaticvoidmain(Stringargs[]){

intj=0;

for(inti=1;i<=10;i++){

j=j+i;

}

System.out.println("j="+j);

}

}

运行结果是:

点击查看答案
第3题
阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} print(max(d

阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} print(max(dic.values()))

点击查看答案
第4题
阅读以下程序,填写运行结果()。def f(a,*b): return a*b print(f(2,3,4))

点击查看答案
第5题
阅读以下程序,填写运行结果()。lst=[11,12,13,14,15] lst.sort(reverse=True,key=lambda x:x%7)

阅读以下程序,填写运行结果()。lst=[11,12,13,14,15] lst.sort(reverse=True,key=lambda x:x%7) print(lst[1])

点击查看答案
第6题
阅读以下程序,填写运行结果()。f=lambda x:x%2==0 print(f(5))

点击查看答案
第7题
阅读以下程序,填写运行结果()。def fun(a,b,*c): lst=[] for i in c: lst.append(a*b*i) return

阅读以下程序,填写运行结果()。def fun(a,b,*c): lst=[] for i in c: lst.append(a*b*i) return lst print(fun(2,3,4,5,6)[1])

点击查看答案
第8题
阅读以下程序,填写运行结果()。def f(a,b=2,c=3): return a+b+c print(f(1,3))

点击查看答案
第9题
阅读以下程序,填写运行结果()。 def f(a,b): return str(a+b) print(f(1,2)+f(2,3))

点击查看答案
第10题
阅读以下程序,填写运行结果()。lst=[(1,3),(4,2),(6,8),(3,0)] lst.sort(key=lambda i:i[0]*i[

阅读以下程序,填写运行结果()。lst=[(1,3),(4,2),(6,8),(3,0)] lst.sort(key=lambda i:i[0]*i[1]) print(lst[-1])

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改