Implementing Array Algorithms
AP Computer Science A · Flashcards
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 32
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: int[] arr = {1, 2, 3;}
QUESTION
What is the default value of an integer array element in Java?
QUESTION
Identify the error: String[] names = new String[3]{"A", "B", "C"};
Tap to flip before you grade
ANSWER
Correct: String[] names = {"A", "B", "C"};. Cannot specify array size when using initializer list syntax.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card