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 depth of test2(18,5) ?
A) 0
B) 1
C) 2
D) 3
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q13: This term is used for methods that
Q14: Look at the following pseudocode algorithm: Algorithm
Q15: Look at the following pseudocode algorithm: Algorithm
Q16: Look at the following pseudocode algorithm: algorithm
Q17: The depth of recursion is:<br>A) the number
Q19: Look at the following pseudocode algorithm: algorithm
Q20: Unlike a loop, a recursive method does
Q21: This type of method is a method
Q22: Look at the following method: public static
Q23: Look at the following pseudocode algorithm: algorithm