
AP CSA 2D Arrays (8.2)
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Herman Galioulline
Used 29+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
As a result of executing the code segment, how many elements in the two-dimensional (2D) array multi will store the value 9?
0
1
2
4
6
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What, if anything, is printed as a result of executing the code segment?
Nothing is printed, because an ArrayIndexOutOfBoundsException is thrown.
Nothing is printed, because it is not possible to use an enhanced for loop on a two-dimensional array.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
As a result of executing the code segment, how many times are "Condition one" and "Condition two" printed?
"Condition one" is printed twice, and "Condition two" is printed twice.
"Condition one" is printed twice, and "Condition two" is printed once.
"Condition one" is printed once, and "Condition two" is printed twice.
"Condition one" is printed once, and "Condition two" is printed once.
"Condition one" is never printed, and "Condition two" is printed once.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
2
3
4
5
6
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
{{0, 1}, {2, 3}}
{{10, -18}, {48, 17}}
{{-5, 2, 0}, {4, 11, 0}}
{{4, 1, 7}, {-10, -11, -12}}
{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment, where num is a properly declared and initialized integer variable. The following code segment is intended to set foundRow and foundCol to the row and column indexes of an array element containing num. The code segment does not work as intended.
Which of the following values for num can be used as a test case to show that the code segment does not work as intended?
12
15
24
41
43
Similar Resources on Wayground
10 questions
Drawing tools safety procedure
Quiz
•
10th Grade
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
10 questions
Greetings
Quiz
•
1st Grade - University
10 questions
DATA STRUCTURES
Quiz
•
12th Grade
11 questions
Creative iMedia: Strengths, Weaknesses and Improvements
Quiz
•
10th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
Treasure Hunt
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
