Question: If I call the following function with n = 10 How many times does fibo get call which n = 4 a. 0 b. 6

If I call the following function with n = 10

def fibo(n): if n == 1 or n=- 2: return 1 else:


How many times does fibo get call which n = 4 

a. 0

b. 6

c. 1

d. 13

e. 7 

f. Can't be determine. 



def fibo(n): if n == 1 or n=- 2: return 1 else: return fibo(n-2) + fibo(n-1)

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

answer ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!