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
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...