132k views
7 votes
If Laura wanted to solve a problem using recursion where the last statement executed is the call to the same method, what type of recursion should she use?

A. tail method

B. tail recursion

C. base recursion

D. infinite recursion

1 Answer

9 votes

Answer:

B: Tail recursion

Step-by-step explanation:

The answer is tail recursion because in python, tail recursive function is defined as the function when the recursive call is the last thing that will be executed by the given function in question.

This definition tallies with the definition we have in the question.

So, option B is correct.

User Creativename
by
3.0k points