
PGAS - Arrays & ArrayLists
Flashcard
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

21 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which is correct syntax to access an element of an ArrayList in Java? Options: list.get(index), list[index], list.getElement(index), list.index
Back
list.get(index)
2.
FLASHCARD QUESTION
Front
What does it mean for a list to be "dynamic"?
Back
You can easily add and remove elements.
3.
FLASHCARD QUESTION
Front
How do you get the number of elements in an ArrayList called "list" in Java?
Back
list.size();
4.
FLASHCARD QUESTION
Front
The _________ method will return the total elements in an ArrayList.
Back
size()
5.
FLASHCARD QUESTION
Front
What are the legal indexes for the array ar, given the following declaration:
int[] ar = {2, 4, 6, 8 }?Back
0, 1, 2, 3
6.
FLASHCARD QUESTION
Front
The ArrayList nums is initialized with the values [5, 3, 1]. What is displayed when the following code is executed?
nums.add(6);
nums.add(0, 4);
nums.remove(1);
Back
[4, 3, 1, 6]
7.
FLASHCARD QUESTION
Front
Which statement below is the correct way to retrieve the first element in the nums ArrayList? Options: nums.get(0), nums[0], nums(0), nums[1]
Back
nums.get(0)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Arrays
Flashcard
•
2nd Grade
16 questions
Mulohazalar va Qiymatlar
Flashcard
•
KG
15 questions
Unit Practice Questions
Flashcard
•
KG
15 questions
shape patterns
Flashcard
•
1st Grade
15 questions
3rd Grade Trivia Tuesday
Flashcard
•
3rd Grade
15 questions
Multiplication & Repeated Addition- Using Arrays
Flashcard
•
3rd Grade
15 questions
21. Food- Fast food
Flashcard
•
KG
15 questions
magic e
Flashcard
•
2nd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade