Solved

Example Code Ch 12-1

Question 4

Multiple Choice

Example Code Ch 12-1
Given 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;
}
-Refer to Example Code Ch 12-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