[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f3fM8I5PkN2j0fK4LkyuQTl5fcK6mYEDDbr7fF4hJmAE":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2023-06-07 19:04:06",51575498,[8,9,10,11],"0","5","6","7",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},25,"c4d7d585a568201f31e3c2c3b5362ff8","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F0005f1edce55b799e8b0a46907cc2844.png","面向对象程序设计(2022级）","252f5ca1395541ab82d9999927ae5c34","第三章 数组 单元练习","声明:int [] ar = {1,2,3,4,5,6};数组ar.length的值是多少",[21,32,41,50,59,67,75,78,86,95],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],51575492,[25,26,27,28],"int [] a = {1,2}","int a[] = {1,2}","int []a=new int [2]","int a[2] = {1,2}","下列关于数组声明()是错误的","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],51575493,[36,37,38,39],"a[0]","a[1]","a[99]","a[100]","已知 int [ ]a = new int[100]; 在下列给出的数组元素中,非法的是( )",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],51575494,[45,46,47,48],"编译错误","编译正确,运行时产生错误","输出0","输出 空","下面代码的运行结果是( ).public class Person { static int arr[] = new int [10]; public static void main(String args[]) { System.out.println(arr[9]); } }",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],51575495,[54,55,56,57],"1 2 3 4 5","什么都不会打印出来","程序将因运行时错误而停止","0 0 0 0 0","以下输出是什么class TestIt{ public static void main ( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; ChangeIt.doIt( myArray ); for(int j=0; j&lt;myArray.length; j++) System.out.print( myArray[j] + &quot; &quot; ); }}class ChangeIt{ static void doIt( int[] z ) { z = null ; }}",{"answer":60,"createTime":5,"id":61,"options":62,"question":66,"source":30,"type":31},[],51575496,[54,63,64,65],"5 2 3 4 1","1 2 3 4 1","5 2 3 4 5","以下输出是什么 ?class LowHighSwap{ static void doIt( int[] z ) { int temp = z[z.length-1]; z[z.length-1] = z[0]; z[0] = temp; }}class TestIt{ public static void main( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; LowHighSwap.doIt(myArray); for (int i = 0; i &lt; myArray.length; i++) { System.out.print(myArray[i] + &quot; &quot;); } }}",{"answer":68,"createTime":5,"id":69,"options":70,"question":74,"source":30,"type":31},[],51575497,[71,72,73,9],"2","3","4","声明一个数组 :int [] ar = {1,2,3,4,5};ar[4]的值是多少",{"answer":76,"createTime":5,"id":6,"options":77,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":79,"createTime":5,"id":80,"options":81,"question":85,"source":30,"type":31},[],51575499,[54,82,83,84],"99 2 3 4 5","0 2 3 4 5","99 99 99 99 99","以下输出是什么 ?class ChangeIt{ static void doIt( int[] z ) { int[] A = z; A[0] = 99; }}class TestIt{ public static void main( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; ChangeIt.doIt(myArray); for (int i = 0; i &lt; myArray.length; i++) { System.out.print(myArray[i] + &quot; &quot;); } }}",{"answer":87,"createTime":5,"id":88,"options":89,"question":94,"source":30,"type":31},[],51575500,[90,91,92,93],"for (int i =0; i &lt; 3; i++) System.out.print( nums[i])","for (i = 1; i &lt; 2; i++) System.out.print( nums[i])","for (i = 0; i &lt; 2; i++) System.out.print( nums[i])","for (i = 1; i &lt; 3; i++) System.out.print(nums[i])","以下哪个循环将在一个单独的行中显示此数组中的所有数字 :float [] nums = {1.1f,2.2f,3.3f}",{"answer":96,"createTime":5,"id":97,"options":98,"question":103,"source":30,"type":31},[],51575501,[99,100,101,102],"它确定数组是否包含与 String 相同的字符","它将数组中的字符复制到 String","它创建一个包含与 String 相同字符的新数组","如果数组中有足够的空间,则会将字符串中的字符逐个复制到数组中","下面这个方法实现什么功能 ?void blur(char[] z, String st){ if(z.length &lt; st.length()) return; for (int i = 0; i &lt; st.length(); i++) { z[i] = st.charAt(i); }}"]