AP CSA Unit 8 Review: 2D Arrays

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Alexandria Robles
Used 12+ times
FREE Resource
22 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
20 sec • 1 pt
Given the code, what is the value of things.length ?
4
3
12
7
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given the code, what is in values[2][1] ?
7.9
9.2
7.3
0.5
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given the code, what is in values[0][1] ?
1.2
9.2
9.0
4.8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
X - Progdas - Array dan Fungsi

Quiz
•
10th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
19 questions
Одновимірні масиви ІІ семестр

Quiz
•
11th Grade
24 questions
Одновимірні масиви ІІ семестр

Quiz
•
11th Grade
20 questions
Fase F - Array

Quiz
•
11th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
20 questions
Array

Quiz
•
12th Grade
20 questions
SIP C

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade