GATE | GATE CS 2008 | Question 79

The value of X5 is
(A) 5
(B) 7
(C) 8
(D) 16

Answer: (C)
Explanation:

Since, X(n) = X(n – 1) + X(n – 2)
X5 = X4 + X3
X4 = X3 + X2 = 5 + 3 = 8
Therefore, X5 = 8 + 5 = 13
Thus, only option (C) is close to the answer.

Please comment below if you find anything wrong in the above post.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.