Introduction to Using Data Sets
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 3
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the output: int[] arr = {10, 20}; System.out.println(arr[1]);
QUESTION
Identify the error: int[] arr = new int[3]; arr[3] = 10;
QUESTION
Identify the error: int[] arr = new int[5]{1, 2, 3, 4, 5};
Tap to flip before you grade
ANSWER
Remove size: int[] arr = {1, 2, 3, 4, 5};. Cannot specify size when using array literal initialization syntax.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card