Implementing Array Algorithms
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 5
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: int[] nums = new [5]int;
QUESTION
Identify the error: int[] arr = {1, 2, 3;}
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