Solved

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

Question 19

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents