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
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
20 questions
Unit 6 ArrayLists and String Methods

Quiz
•
9th - 12th Grade
20 questions
GCSE Computer Science: Programming (Data Structures)

Quiz
•
9th - 10th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
15 questions
AP CSP Exam Review: Big Idea 3

Quiz
•
8th - 10th Grade
21 questions
Code.org: Web Development: Unit 2 Lessons 1 - 5 Test

Quiz
•
7th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade