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 base case for the method?
A) x < y
B) -5
C) Test2(x - y, y + 5) + 6
D) +6
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q17: The depth of recursion is:<br>A) the number
Q18: Look at the following method: public static
Q19: Look at the following pseudocode algorithm: algorithm
Q20: Unlike a loop, a recursive method does
Q21: This type of method is a method
Q23: Look at the following pseudocode algorithm: algorithm
Q24: Look at the following method: public static
Q25: Recursive algorithms are usually less efficient than
Q26: The Towers of Hanoi is:<br>A) a mathematical
Q27: How many times will the following method