हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

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×