
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
Commas
Flashcard
•
4th - 5th Grade
15 questions
Parts of a Book
Flashcard
•
4th - 5th Grade
15 questions
Drama STAAR Review
Flashcard
•
4th - 5th Grade
14 questions
Multiplication Fluency
Flashcard
•
3rd - 4th Grade
16 questions
Factors and Factor Pairs
Flashcard
•
4th Grade
15 questions
Text Features
Flashcard
•
3rd - 5th Grade
10 questions
Writing Process (prewriting)
Flashcard
•
4th Grade
15 questions
Dot Plots and Stem & Leaf Plots
Flashcard
•
4th - 5th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
12 questions
Telling Time to the Hour and Half Hour
Quiz
•
1st - 3rd Grade
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
16 questions
Measurement
Quiz
•
1st Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade