Array Creation and Access
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 17
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Find the mistake: int[] arr = new int[3]{1, 2, 3};
QUESTION
Find the correct syntax to fill the array 'arr' with zeros.
QUESTION
What will 'arr.length' return for an array 'arr' of 5 elements?
Tap to flip before you grade
ANSWER
5. Property returns total number of elements in array.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card