Suppose that a recursive function with integer parameter n has a base case of 0, and for each non-base case, the function makes a recursive call with argument n+1. If the function is initially called with an actual argument of n = 3, the function call will

A)   cause an infinite chain of recursive calls.
B)   return after a chain of 2 recursive calls.
C)   return after a chain of 3 recursive calls.
D)   return after a chain of 4 recursive calls.
E)   None of the above

Answer: A) cause an infinite chain of recursive calls.

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. It is important in a direct digital signature to perform an outer confidentiality function first and then the signature function. 2. Message authentication protects two parties who exchange messages from any third party, however, it does not protect the two parties against each other. 3. The digital signature function does not include the authentication function. 4. The DSS approach makes use of a hash function. 5. It must be relatively difficult to recognize and verify the digital signature.

Computer Science & Information Technology

For a non-profit organization, the only source for funding is from ______________.

a. Grants b. Private contributions c. Collection of fees d. All of the above

Computer Science & Information Technology