AP Computer Science A Unit 8 Progress Check:
MCQ Exam (2025) Exam Questions & Answers |
Latest Already Graded A+ UPDATE 2025|2026!!
STUDY GUIDE EXAM
Save
Terms in this set (10)
A two-dimensional array D) I and III
myArray is to be created
with the following
contents.
{{0, 0, 3},
{0, 0, 0},
{7, 0, 0}}
Which of the following
code segments can be
used to correctly create
and initialize myArray ?
int myArray[][] = new int[3]
[3];myArray[0][2] =
3;myArray[2][0] = 7;
int myArray[][] = new int[3]
[3];myArray[0][2] =
7;myArray[2][0] = 3;
int myArray[][] = {{0, 0, 3},
{0, 0, 0}, {7, 0, 0}};
https://quizlet.com/1117079171/ap-computer-science-a-unit-8-progress-check-mcq-exam-2025-exam-questions-answers-latest-already-graded-a-upd… 1/10
, 12/4/25, 1:16 PM AP Computer Science A Unit 8 Progress Check: MCQ Exam (2025) Exam Questions & Answers | Latest Already Graded A+ UPDA…
Consider the following A) {{0, 1, 2}, {4, 5, 6}, {8, 3, 6}}
code segment, which is
intended to create and
initialize the two-
dimensional (2D) integer
array num so that columns
with an even index will
contain only even integers
and columns with an odd
index will contain only
odd integers.
int[][] num = / missing
code /;
Which of the following
initializer lists could
replace / missing code /
so that the code segment
will work as intended?
Consider the following C) keyboard[2][2] + keyboard[1][0] + keyboard[0][4]
code segment, which is
intended to display "cat".
String[][] keyboard = {{"q",
"w", "e", "r", "t"},
{"a", "s", "d", "f", "g"},
{"z", "x", "c", "v", "b"}};
System.out.println(/
missing expression /);
Which of the following
can replace / missing
expression / so that the
code segment works as
intended?
https://quizlet.com/1117079171/ap-computer-science-a-unit-8-progress-check-mcq-exam-2025-exam-questions-answers-latest-already-graded-a-upd… 2/10