2d array Java

2d array Java

10th - 12th Grade

3 Qs

quiz-placeholder

Similar activities

Genes and health

Genes and health

10th Grade

8 Qs

CIS 105 - 2.8

CIS 105 - 2.8

9th - 12th Grade

8 Qs

PRUEBA DE CIENCIAS NATURALES

PRUEBA DE CIENCIAS NATURALES

10th Grade

8 Qs

Statika

Statika

9th - 12th Grade

7 Qs

Logarithmic Function

Logarithmic Function

10th Grade

6 Qs

Mediana de un triángulo.

Mediana de un triángulo.

11th Grade

6 Qs

Vektorműveletek koordinátákkal

Vektorműveletek koordinátákkal

11th Grade

6 Qs

Figuras espaciais: Vista e perspectivas

Figuras espaciais: Vista e perspectivas

11th Grade

8 Qs

2d array Java

2d array Java

Assessment

Quiz

Mathematics, Science, Computers

10th - 12th Grade

Practice Problem

Medium

Created by

Sheryl Edwards

Used 140+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

3 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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 QUESTION

30 sec • 1 pt

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 QUESTION

30 sec • 1 pt

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