Multiple Choice
Look at the following method: public static int test2(int x, int y)
{
If ( x < y)
{
Return -5;
}
Else
{
Return (test2(x - y, y + 5) + 6) ;
}
}
What is the recursive case for the method?
A) x < y
B) -5
C) x >= y
D) x != y
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q27: How many times will the following method
Q28: To solve a program recursively, you need
Q29: Like a loop, a recursive method must
Q30: Look at the following pseudocode algorithm: algorithm
Q31: The actions that the JVM must perform
Q33: Indirect recursion occurs when:<br>A) a loop is
Q34: Which of the following problems can be
Q35: If method A calls method B, which
Q36: Indirect recursion occurs when a method calls
Q37: In Java, it is not possible for