Solved

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

Question 4

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents