Team 1
0
Team 2
0
Teams
Name
Score
1
2
3
4
5
6
7
8
Loading
×
thief
Give points!
5
10
15
20
25
×
fairy
Take points!
5
10
15
20
25
×
rocket
Go to first place!
Okay!
×
thief
Give points!
5
10
15
20
25
10
×
What value is returned from a call to mystery(1,5)?
5
Oops!
Check
Okay!
Check
10
×
What value is returned from a call to mystery(3,6)?
18
Oops!
Check
Okay!
Check
×
baam
Lose 15 points!
Oops!
×
gift
Win 15 points!
Okay!
×
gift
Win 15 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
Complete the code for the recursive method printSum, which is intended to return the sum of digits from 1 to n.
(n + printSum(n - 1))
Oops!
Check
Okay!
Check
10
×
The _________________ is the instance where a recursive method will return a value rather than calling itself.
base case
Oops!
Check
Okay!
Check
10
×
Where is/are the recursive call(s) in the getArea() method?
line #4
Oops!
Check
Okay!
Check
10
×
What is printed for the call myPrint(8)?
8
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies