
TWO-DIMENSIONAL ARRAYS
Quiz
•
Computers
•
University - Professional Development
•
Practice Problem
•
Hard
Shaikha Alkaabi
Used 15+ times
FREE Resource
Enhance your content in a minute
5 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[ ] = new int[5,4];
int Matrix[ ][ ] = int[5][4];
int Matrix[ ]; Matrix = new int[5,4];
2.
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}};?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
{ {3, 2, 1}, {2, 4, 4} }
{ {4, 4, 2}, {2, 4, 4} }
{ {6, 4, 2}, {2, 4, 6} }
{ {3, 2, 1}, {1, 4, 8} }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements assigns the letter S to the third row and first column of a two-dimensional array named strGrid?
strGrid[0][2] = "S";
strGrid[1][3] = "S";
strGrid[3][1] = "S";
strGrid[2][0] = "S";
strGrid[0][0] = "S";
5.
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.
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
Machine Learning (Introduction)
Quiz
•
University
10 questions
Google Apps
Quiz
•
10th Grade - Professi...
10 questions
Revisão LP 2023.1
Quiz
•
Professional Development
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
6 - Изменение размеров и формы объектов
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
