Team 1
0
Team 2
0
Teams
Name
Score
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Loading
×
monster
Reset all scores!
Oops!
×
rocket
Go to first place!
Okay!
×
shark
Other team loses 25 points!
Okay!
×
lifesaver
Give 20 points!
Oops!
10
×
What value is stored at index 1 in this array?
Dennis
Oops!
Check
Okay!
Check
10
×
True or False: An array can be used to store different types of data; such as: doubles and integers together.
False
Oops!
Check
Okay!
Check
10
×
What does the following code segment print out?
4
Oops!
Check
Okay!
Check
10
×
What is the term that refers to a collection of related elements used to store the same type of data called?
Array
Oops!
Check
Okay!
Check
10
×
What is the correct way to declare and initialize an integer array called numbers with 10 elements?
int [ ] numbers = new int[10];
Oops!
Check
Okay!
Check
10
×
How would you access the fourth element in array nums?
nums[3]
Oops!
Check
Okay!
Check
10
×
What is the correct way to create an array of 12 strings called months?
String[ ] months = new String[12];
Oops!
Check
Okay!
Check
10
×
True of False: An array has a fixed length.
True
Oops!
Check
Okay!
Check
20
×
Index values of an array range from ___________ to ___________.
0 to length â 1
Oops!
Check
Okay!
Check
10
×
What does the following code segment print out?
2
Oops!
Check
Okay!
Check
20
×
Each element in a String array is automatically initialized to ___________.
null
Oops!
Check
Okay!
Check
×
eraser
Reset score!
Oops!
×
rocket
Go to first place!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
banana
Go to last place!
Oops!
10
×
Given the following declaration, what are the legal index values for the array ar?
0, 1, 2, 3
Oops!
Check
Okay!
Check
×
thief
Give points!
5
10
15
20
25
×
fairy
Take points!
5
10
15
20
25
×
gift
Win 15 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
What does the following code segment print out?
6
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies