
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
LOWEST COMMON MULTIPLES
Flashcard
•
3rd Grade
15 questions
Multiplication and Division Facts
Flashcard
•
3rd Grade
15 questions
Compare Fractions
Flashcard
•
3rd Grade
20 questions
Standards of Professional Practice
Flashcard
•
KG
15 questions
Consonants
Flashcard
•
KG
15 questions
Fry Sight Words 1-25
Flashcard
•
KG - 3rd Grade
15 questions
VINAMILK
Flashcard
•
KG
15 questions
Long Vowels and the silent e
Flashcard
•
KG
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade