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
18 questions
ICT01: Introduction to MATLAB basics

Quiz
•
11th - 12th Grade
26 questions
Java Syntax Quiz 1

Quiz
•
10th Grade
20 questions
Data structure test1

Quiz
•
12th Grade
17 questions
Массивы в Pascal ABC

Quiz
•
10th Grade
20 questions
Java For Loop basic syntax

Quiz
•
9th - 12th Grade
20 questions
COMP 210 - Help for MDTM 2

Quiz
•
12th Grade
20 questions
Uji Pemahaman Komputasional

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

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade