English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Using this recursive definition anifnaanotherwisean={1if n=0a×an-1otherwise how many multiplications are needed to calculate a10? - Computer Science

Advertisements
Advertisements

Question

Using this recursive definition

`"a"^"n" = {(1, "if"  "n" = 0), ("a" × "a"^("n" - 1), "otherwise"):}`

how many multiplications are needed to calculate a10?

Options

  • 11

  • 10

  • 9

  • 8

MCQ

Solution

10

shaalaa.com
Recursion
  Is there an error in this question or solution?
Chapter 8: Iteration and recursion - Evaluation - Section - A [Page 113]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 8 Iteration and recursion
Evaluation - Section - A | Q 6. | Page 113
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×