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
What is the proper way to get the number of items in an ArrayList called list?
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 Wayground
21 questions
Introduction to CS

Quiz
•
7th Grade - University
15 questions
Grade 8 End of Unit Revision

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

Quiz
•
9th - 12th Grade
20 questions
Python Lists and Strings

Quiz
•
9th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
18 questions
CS1 Unit 8 Review

Quiz
•
9th - 12th Grade
20 questions
EOC 3D/GD/Design

Quiz
•
9th - 12th Grade
15 questions
Unit 8 Javascript Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade