Question: Question 11 pts Data in a table or a matrix can be represented using a _____ array. (Hint: Please use the wording from the book.)
Question 11 pts
Data in a table or a matrix can be represented using a _____ array.
(Hint: Please use the wording from the book.)
Flag this Question
Question 21 pts
Which of the following is the correct way to create a two-dimensional array of 5-by-4 char values.
| char letters[][] = new char[5][4] |
| char letters[][] = new char[5,4]; |
| char[][] letters = new char[5][4]; |
| char[ , ] letters = new char[5,4]; |
| char[][] letters = new char[5,4]; |
Flag this Question
Question 31 pts
How many rows are in the following two-dimensional array?
int[][] matrix = new int[10][5];
Flag this Question
Question 41 pts
How many columns are in the following two-dimensional array?
String[][] phrases = new String[5][4];
Flag this Question
Question 51 pts
int[][] numbers = {{1,2,3},{4,5,6},{7,8,9}};
Using the above array declaration, how would we display the value of 7? We would enter: System.out.println(numbers[ ][ ]);
Flag this Question
Question 61 pts
A ____ array is a type of two-dimensional array that has rows of different lengths.
Flag this Question
Question 72 pts
Which of the following statements are valid? (Choose all the apply.)
| int[][] r = new int[2]; |
| int[] x = new int[]; |
| int[][] y = new int[3][]; |
| int[][] z = {{1,2}}; |
| int[][] m = {{1,2},{2,3}}; |
| int[][] n = {{1,2},{2,3},}; |
Flag this Question
Question 8
When passing a two-dimensional array to a method, the ___ of the array is passed to the method.
(Hint: Please use the textbook wording.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
