
B4 - Two-dimensional Arrays
Authored by Ahmetcan türk
Other
University
Used 50+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Examen del Kaizen
Quiz
•
University
15 questions
2da Práctica de reforzamiento Acv
Quiz
•
University
10 questions
Tarea 03 sociales Psicología
Quiz
•
University
10 questions
PMBOK - Gestión de Costos
Quiz
•
University - Professi...
15 questions
Antropometri
Quiz
•
University
10 questions
Psikologi
Quiz
•
University
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
10 questions
Fomento 2
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Other
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University