
CodeHS 5.4 & 5.5 ArrayList Stuff
Authored by Aaron Pavao
Computers
9th - 12th Grade
10 Questions
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arrays have a fixed size.
true
false
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ArrayLists have a fixed size.
true
false
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do we set up a class to use ArrayLists?
Select all that apply.
import java.util.*;
import java.lang.*;
import java.lang.ArrayList;
import java.ArrayList.*;
import java.util.ArrayList;
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a line of code to add the value 23 to the end of ArrayList foo.
5.
FILL IN THE BLANK QUESTION
0 sec • 1 pt
Write a line of code to change the value at index 5 in the ArrayList foo to 42.
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a line of code to retrieve the value at index 9 from the ArrayList foo and assign it to the int bar.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a line of code to get the length of ArrayList foo.
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
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade