Q: An array of arrays in Java is called ___ array.
Solution: no solution
Q: A multidimensional array contains elements of the same data-type in all rows and columns. State TRUE or FALSE.
Solution: no solution
Q: An array of dimension N contains __ number of subscripts or brackets?
Solution: no solution
Q: An array with two dimensions is called a two-dimensional array in Java. State TRUE or FALSE.
Solution: no solution
Q: Row number and Column number in a Multidimensional array start with ___.
Solution: no solution
Q: A 4-dimensional array is an array of ___ dimensional arrays.
Solution: An N-dimensional array is an array of (N-1) dimensional arrays.
Q: Choose the correct way of initializing a multidimensional array below.
Solution: We should not mention the size of any row or column.
Q: What is the output of the Java program with the multidimensional array? int[][] goats; goats = new int[3][]; goats[0] = {1,2}; System.out.println(goats[0][1]);
Solution: It is lazy initialization. So, you can not use braces { } to initialize. Use the keyword new. goats[0] = new int[2]; goats[0][0] = 1; goats[0][1]=2; System.out.println(goats[0][1]); //Output: 2
Q: State TRUE or FALSE. In a multidimensional array, the number of Columns in each Row can be different. 1 2 3 4 5 6
Solution: no solution
Q: While mentioning the array size in a multidimensional array using the new keyword, the left-most script is mandatory. State TRUE or FALSE. int ary[][]; ary = new int[5][];//first dimension is compulsory.
Solution: no solution
You Have Score    | /10 |