Solved

Public Static Int Func1(int M, Int N)

Question 43

Multiple Choice

public static int func1(int m, int n)
{
If (m == n || n == 1)
Return 1;
Else
Return func1(m - 1, n - 1) + n * func1(m - 1, n) ;
}Given the code in the accompanying figure, which of the following method calls would result in the value 1 being returned?


A) func1(1, 0)
B) func1(1, 1)
C) func1(1, 2)
D) func1(2, 0)

Correct Answer:

verifed

Verified

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

Related Questions