Solved

For the Questions Below, Use the Following Recursive Method

Question 60

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

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

Related Questions