Solved

Look at the Following Method: Public Static Int Test2(int X

Question 22

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions