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
17 questions
Elementele de bază ale limbajului C++

Quiz
•
10th Grade
25 questions
10.sınıflar-Javascript-2.dönem

Quiz
•
10th Grade
21 questions
Data Structures

Quiz
•
9th - 12th Grade
20 questions
Array

Quiz
•
12th Grade
20 questions
Prosedural & PBO 1

Quiz
•
9th Grade
20 questions
Ulangan 2

Quiz
•
10th Grade
25 questions
1st Period Feb 22, 2024 - Virtual AP CompSci AP

Quiz
•
9th - 12th Grade
25 questions
Kisi PTS GENAP PD

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade