Solved

What Would Happen If a Negative Value Is Passed to a Method

Question 34

Multiple Choice

What would happen if a negative value is passed to a method that returns the factorial of the value passed to it?


A) the method will calculate the correct value for the factorial of the number
B) the method will calculate a negative value for the factorial of the number
C) the method would terminate immediately
D) an infinite sequence of recursive calls will occur

Correct Answer:

verifed

Verified

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

Related Questions