Which of the following statements correctly declares a two-dimensional integer array?
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
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 Quizizz
20 questions
GCSE Computer Science: Programming (Data Structures)

Quiz
•
9th - 10th Grade
20 questions
PH - KLS 12 BAB 1

Quiz
•
12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
20 questions
Abstract Data Types

Quiz
•
12th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
20 questions
SIP C

Quiz
•
12th Grade
18 questions
ICT01: Introduction to MATLAB basics

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University