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

Respuesta :

Answer:

B: Tail recursion

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.

ACCESS MORE