Solved

For the Questions Below, Use the Following Recursive Method

Question 2

Multiple Choice

For the questions below, use the following recursive method.
public int question1_2(int x, int y)
{
if (x == y) return 0;
else return question1_2(x-1, y) + 1;
}
-If the method is called as question1_2(8, 3) , what is returned?


A) 11
B) 8
C) 5
D) 3
E) 24

Correct Answer:

verifed

Verified

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