This website is preserved for historical and scholarly reference and is no longer actively maintained.

QUIZ 19

October 12, 1998



1.  What is the value of 0!  ?

2.  What is the value of 1!  ?

3.  What is the value of 4!  ?

4.  What is the value of 5!  ?

5.  Complete the following iterative method to compute n!

         public static int factorial ( int n )





6.  Complete the following recursive method to compute n!

         public static int factorial ( int n )



Return to Eleanor Hare's home page.

Return to Department of Computer Science Home page.