Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Recursion in Java
0
%
0
0
0
Back
Restart
Where is/are the recursive call(s) in the getArea() method?
line #4
Oops!
Okay!
The _________________ is the instance where a recursive method will return a value rather than calling itself.
base case
Oops!
Okay!
What value is returned from a call to mystery(3,6)?
18
Oops!
Okay!
What value is returned from a call to mystery(1,5)?
5
Oops!
Okay!
What is printed for the call myPrint(8)?
8
Oops!
Okay!
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!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies