下列程序的输出结果是( )。
A.Catch---1
B.Catch---2
C.Catch---3
D.以上都不对
第1题:
下列程序的输出结果是( )。

A.编译未通过
B.编译通过,但运行错误
C.可以运行,但有错误
D.以上都不对
第2题:
下列程序的输出结果是( )。 Public class Test{ Public static void main(String[]args){ int[]array=(2,4,6,8,10); int size=6; int result=-l: try{ for(int i=0;i<sizeresult= =-1:) if(array[i]= =20)result=i: } catch(ArithmeticException e){ System.out.println("Catch---1"); } catch(ArraylndexOutOfBoundsException e){ System.out.println("Catch---2"): } catch(Exception e){ System.out.println("Catch---3"): } }
A.Catch---1
B.Catch---2
C.Catch---3
D.以上都不对
第3题:
以下程序的输出结果是: nums=[1,2,3,4] nums.append([5,6,7,8]) print(len(nums)
A.4
B.5
C.8
D.以上都不对
第4题:
阅读下面程序 public class Cycle { public static void main(String[] args) { System.out.println(args[0]); } } 在命令行输入java Cycle one two,该程序输出的结果是
A.Cycle
B.one
C.two
D.以上三个选项都不对
第5题:
下列程序的输出结果是( )。 public class Test{ public static void main(String[]args){ int[]array=(2,4,6,8,lO); int size=6; int result =-1: try{ for(int i=0;i(size 8L&result= = -1;) if(array[i]= =20)result=i: } catch(ArithmeticException e){ System.out.println("Catch- - -l"); } catch(ArraylndexOutOfBoundsException e){ System.out.println("Catch- - -2"); } catch(Exception e){ System.out.println("Catch- - -3");) } }
A.Catch- - -1
B.Catch- - -2
C.Catch- - -3
D.以上都不对