मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

If the Fibonacci number is defined recursively as F(n) = nnFnFnotherwise{0n=01n=1F(n-1)+ F(n-2)otherwise to evaluate F(4), how many times F() is applied? - Computer Science

Advertisements
Advertisements

प्रश्न

If the Fibonacci number is defined recursively as F(n) = `{(0, "n" = 0), (1, "n" = 1), ("F"("n" - 1),+  "F"("n" - 2) "otherwise"):}` 
to evaluate F(4), how many times F() is applied?

पर्याय

  • 3

  • 4

  • 8

  • 9

MCQ

उत्तर

9

shaalaa.com
Recursion
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Iteration and recursion - Evaluation - Section - A [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 8 Iteration and recursion
Evaluation - Section - A | Q 5. | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×