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
×
seesaw
Swap points!
Oops!
×
star
Double points!
Okay!
×
gift
Win 20 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
What does the following code segment print out?
2
Oops!
Check
Okay!
Check
10
×
What is the correct statement that gives the length of the array data?
data.length
Oops!
Check
Okay!
Check
10
×
What is the correct way to create an array called nums with the following three numbers? 12 8 15
int[ ] nums = {12, 8, 15};
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
×
monster
Reset all scores!
Oops!
×
shark
Other team loses 25 points!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
banana
Go to last place!
Oops!
10
×
How would you access the fourth element in array nums?
nums[3]
Oops!
Check
Okay!
Check
20
×
Index values of an array range from ___________ to ___________.
0 to length â 1
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
20
×
Each element in a String array is automatically initialized to ___________.
null
Oops!
Check
Okay!
Check
×
banana
Go to last place!
Oops!
×
magnet
Take 15 points!
Okay!
×
rocket
Go to first place!
Okay!
×
baam
Lose 10 points!
Oops!
10
×
True of False: An array has a fixed length.
True
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
×
What value is stored at index 1 in this array?
Dennis
Oops!
Check
Okay!
Check
×
seesaw
Swap points!
Oops!
×
star
Double points!
Okay!
×
rocket
Go to first place!
Okay!
×
lifesaver
Give 15 points!
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