AP Computer Science A Quiz
20 questions · no time limit
0:00
SELECTION AND ITERATION
Question 1 of 20
No time limit
Current
Answered
Flagged
Not seen
Analyze the following code. How many times will the loop execute? // Scenario: processing an array until a target is found int[] values = {3, 6, 9, 12, 15}; int i = 0; // initialize index while (i < values.length && values[i] != 12) { // stop when 12 is found i++; // update index to iterate }
YOUR PROGRESS
20
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F