Multiple Choice
For the questions below, refer to the following recursive factorial method.
public int factorial(int x)
{
if (x > 1) return x * factorial (x - 1) ;
else return 1;
}
-What is returned if factorial(3) is called?
A) 0
B) 1
C) 3
D) 6
E) 9
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: For the questions below, recall the Towers
Q2: For the questions below, consider the following
Q4: For the questions below, consider the following
Q6: For the questions below, assume that int[
Q7: The following method correctly multiplies two ints
Q8: Define the magnitude of a number as
Q10: For the questions below, refer to the
Q20: Rewrite the following iterative method as a
Q40: The recursive method to solve the Towers
Q50: The following two methods will both compute