Array Traversals
AP Computer Science A · Flashcards
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 39
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What is the output of 'int[] arr = {10, 20}; System.out.println(arr[1]);'?
QUESTION
What error occurs when accessing an invalid array index?
QUESTION
What is the default value of an int array element in Java?
Tap to flip before you grade
ANSWER
0. Java initializes int arrays with zero values.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card