Which of the following is a precondition for a method that accepts a number n and computes the nth Fibonacci number?

a. n is a negative integer
b. n is a positive integer
c. n is greater than 1
d. n is an even integer

b. n is a positive integer

Computer Science & Information Technology

You might also like to view...

For data validation, it is best to use a(n)

A) if statement. B) while loop. C) for loop. D) nested loop. E) switch statement.

Computer Science & Information Technology

For each node in a DO/S, the Memory Manager uses a kernel with a ____ algorithm to track the amount of memory that is available.

A. sharing B. stacking C. turning D. paging

Computer Science & Information Technology