What is the proper way to get the number of items in an ArrayList called list?
CSA Unit 7 Test

Quiz
•
Computers
•
9th Grade
•
Medium
Kevin Kamrath
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list.length
list.size
list.length()
list.size()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
Hello
World
list[0]
There will be a compiler error
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with the following code?
It will throw an IndexOutOfBoundsException.
You cannot use int as the type in an ArrayList.
list is a reserved word, so you can’t call the variable that.
You need to define the new ArrayList on a new line of code.
Nothing. The above code is correct.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
0
5
6
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
3
coding
in
Java
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Consider the following statement:
I
II
III
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the proper initialization and declaration be for an ArrayList myTemps meant to store precise temperature measurements?
ArrayList<double> myTemps = new ArrayList<double>();
ArrayList<Double> myTemps = new ArrayList<Double>();
ArrayList<Integer> myTemps = new ArrayList<Integer>();
ArrayList<double> myTemps = ArrayList<double>();
ArrayList<Double> myTemps = ArrayList<Double>();
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
AQA GCSE Computer Science Paper 1

Quiz
•
9th - 11th Grade
20 questions
Intro to JavaScript in HTML quiz

Quiz
•
9th - 12th Grade
20 questions
looping and branching statements in C

Quiz
•
9th Grade
17 questions
Cumulative Test Practice Units 1, 3, 4, 5, & 7

Quiz
•
9th - 12th Grade
15 questions
if-else-if and Logical Operators

Quiz
•
9th - 12th Grade
20 questions
3B - AP CSP

Quiz
•
9th - 12th Grade
20 questions
Computer Pioneers - Charles Babbage & others

Quiz
•
9th Grade
15 questions
IF and Vlookup Function

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade