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

d.

Computer Science & Information Technology

You might also like to view...

The Selection pane is an option that appears when the ________ arrow, on the Home tab, in the Editing group is clicked

A) Select B) Find C) Replace D) Edit

Computer Science & Information Technology

Any typing error in a procedure will cause a(n) ________ error when attempting to run the macro

Fill in the blank(s) with correct word

Computer Science & Information Technology