
B4 - Two-dimensional Arrays

Quiz
•
Other
•
University
•
Medium

Ahmetcan türk
Used 50+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following:
double[][] values =
{ {1.2, 9.0, 3.2},
{9.2, 0.5, 1.5, -1.2},
{7.3, 7.9, 4.8} } ;
what is in values[2][1] ?
7.3
7.9
9.2
There is no such array element.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following:
double[][] values =
{ {1.2, 9.0, 3.2},
{9.2, 0.5, 1.5, -1.2},
{7.3, 7.9, 4.8} } ;
what is in values[3][0] ?
7.3
7.9
9.2
There is no such array element.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to create a table that looks like:
Which of the following will work?
double[][] table =
{ 12, -9, 8,
7, 14,
-32, -1, 0} ;
double[][] table =
{ {12, -9, 8},
{7, 14, 0},
-32, -1, 0} };
double[][] table =
{ {12, -9, 8}
{7, 14}
{-32, -1, 0} };
double[][] table =
{ {12, -9, 8},
{7, 14},
{-32, -1, 0} };
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
double[][] things =
{ {1.2, 9.0},
{9.2, 0.5, 0.0},
{7.3, 7.9, 1.2, 3.9} } ;
What is the value of things.length ?
2
3
4
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
double[][] things =
{ {1.2, 9.0},
{9.2, 0.5, 0.0},
{7.3, 7.9, 1.2, 3.9} } ;
What is the value of things[2].length ?
2
3
4
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
long[][] stuff ;
Which of the following statements constructs an array with 5 rows of 7 columns each and assign its reference to stuff ?
stuff = new stuff[5][7] ;
stuff = new long[5][7] ;
stuff = long[5][7] ;
stuff = long[7][5] ;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
int[][] items =
{ {0, 1, 3, 4},
{4, 3, 99, 0, 7 },
{3, 2} } ;
Which of the following statements replaces the 99 with 77?
items[1][2] = 77;
items[2][1] = 77;
items[ 99 ] = 77;
items[2][3] = 77;
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
CSS Layouts Flexbox

Quiz
•
University
10 questions
Java Quiz

Quiz
•
University
10 questions
Computational Thinking for Problem Solving

Quiz
•
University
10 questions
HTML PHP C++

Quiz
•
University
10 questions
Java Set 2

Quiz
•
University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
10 questions
Java set3

Quiz
•
University
15 questions
Definite Integrals #1

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University