Assuming the following pseudocode for the Fibonacci series, what is the value of fibonacci(5)?

fibonacci(0) = 0
fibonacci(1) = 1
fibonacci(n) = fibonacci(n – 1) + fibonacci(n – 2)
a) 8
b) 1
c) 3
(d) 5


(d) 5

Computer Science & Information Technology

You might also like to view...

Mutual exclusion locks (mutexes) must be used properly in order to prevent ______.

a. data consistency b. creating additional threads c. thread synchronization d. thread deadlocks e. interprocess communications

Computer Science & Information Technology

Each container can have ________.

a. only one layout manager b. one or more layout managers c. zero or more layout managers d. only one or two layout managers

Computer Science & Information Technology

A shortcut menu displays when you right-click on a screen object, and it displays commands and options specifically related to the object you right-clicked

Indicate whether the statement is true or false

Computer Science & Information Technology

During the parsing phase, the sequence of tokens formed by the scanner is checked to see whether it is _________ correct according to the rules of the programming language.

A. grammatically B. algorithmically C. always D. syntactically

Computer Science & Information Technology