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
×
eraser
Reset score!
Oops!
×
seesaw
Swap points!
Okay!
×
gift
Win 5 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
Consider the above code segment. What is the return type of the getDay() method?
int
Oops!
Check
Okay!
Check
10
×
Given class Counter above, what is the type of count() method in the code segment? (accessor or mutator)
mutator
Oops!
Check
Okay!
Check
×
banana
Go to last place!
Oops!
×
seesaw
Swap points!
Okay!
×
rocket
Go to first place!
Okay!
×
lifesaver
Give 25 points!
Oops!
10
×
What is the return type of getModelName() method?
String
Oops!
Check
Okay!
Check
×
eraser
Reset score!
Oops!
×
rocket
Go to first place!
Okay!
×
rocket
Go to first place!
Okay!
×
banana
Go to last place!
Oops!
10
×
True or False: setVehicleAttributes is an accessor method.
False
Oops!
Check
Okay!
Check
×
heart
Other team wins 25 points!
Oops!
×
rocket
Go to first place!
Okay!
×
shark
Other team loses 20 points!
Okay!
×
baam
Lose 5 points!
Oops!
10
×
How many instance variables are created in the code segment above?
3
Oops!
Check
Okay!
Check
10
×
You should declare all instance variables as ____________________.
private
Oops!
Check
Okay!
Check
10
×
How many parameters does the getDay() method have?
0
Oops!
Check
Okay!
Check
10
×
Given class Counter above, what is the type of getValue() method in the code segment? (accessor or mutator)
accessor
Oops!
Check
Okay!
Check
10
×
Given class Counter above, how many instance variables are created in the code segment?
1
Oops!
Check
Okay!
Check
10
×
How many accessor methods do you see in the code segment above?
2
Oops!
Check
Okay!
Check
10
×
True or False: The coinName variable can be accessed only by methods of the Coin class.
True
Oops!
Check
Okay!
Check
10
×
Given class Counter above, how many instances of the Counter class are created in the code segment?
2
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies