
2d array Java

Assessment
•
Sheryl Edwards
•
Mathematics, Science, Computers
•
10th - 12th Grade
•
138 plays
•
Medium
Student preview

3 questions
Show answers
1.
Multiple Choice
Which of the following statements correctly declares a two-dimensional integer array?
int Matrix[ ] = new int[5,4];
int Matrix[ ]; Matrix = new int[5,4];
int Matrix[ ][ ] = new int[5][4];
int Matrix[ ][ ] = int[5][4];
2.
Multiple Choice
How would you get the value 6 out of the following array int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};? Remember each set of curly braces represents a row, or a single dimensional array.
a [0][3]
a [1][3]
c) a[0][2]
d) a[2][0]
e) a[3][1]
3.
Multiple Choice
How many columns does a have if it is created as follows
int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?
3
4
2
1
Find a similar activity
Create activity tailored to your needs using
Java Array Basics Quiz

•
10th Grade
2D- Arrays In java

•
9th - 12th Grade
Java array

•
11th Grade - University
AP CSA 2D Array

•
9th - 12th Grade
G12 W10 L2 2D Array

•
12th Grade
Java Arrays - Scavenger Hunt (Grace)

•
11th Grade
Quiz on Two-Dimensional Arrays

•
12th Grade
Two-Dimensional Array

•
9th - 12th Grade