
APCS - 2D Array Packet
Quiz
•
12th Grade
•
Practice Problem
•
Medium
Heather Luman
Used 31+ times
FREE Resource
Enhance your content in a minute
6 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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
double[][] things =
{ {1.2, 9.0, 8.7, 1.0},
{9.2, 0.5, 0.0, 5.2},
{7.3, 7.9, 1.2, 3.9} } ;
What is the value of things.length ?
4
3
12
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following:
double[][] values =
{ {1.2, 9.0, 3.2},
{9.2, 0.5, -1.2},
{7.3, 7.9, 4.8} } ;
what is in values[2][1] ?
7.9
9.2
7.3
0.5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following:
double[][] things =
{ {1.2, 9.0, 8.7, 1.0},
{9.2, 0.5, 0.0, 5.2},
{7.3, 7.9, 1.2, 3.9} } ;
What is the value of things[0].length ?
4
3
12
7
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
CỦNG CỐ BÀI 21 - SINH HỌC 10
Quiz
•
9th - 12th Grade
10 questions
RUN BTS!
Quiz
•
7th Grade - University
10 questions
ULANGAN 1 LIMIT FUNGSI TRIGONOMETRI
Quiz
•
12th Grade
11 questions
Fun riddles
Quiz
•
KG - Professional Dev...
10 questions
Tanaman Hias UTS
Quiz
•
12th Grade
10 questions
kiểm tra thường xuyên lần 1
Quiz
•
12th Grade - University
10 questions
Quiz - Respiration in plants and animals
Quiz
•
5th - 12th Grade
10 questions
Legal System Roles
Quiz
•
12th Grade
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
Discover more resources for
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
