What Happens If The Base Condition Isnt Defined In Recursive #724
What happens if the base condition isn’t defined in recursive programs?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Argument Passing, Variables and Recursion - Python Recursion - Quiz No.2.
What happens if the base condition isn’t defined in recursive programs?
Program gets into an infinite loop
Program runs once
Program runs n number of times where n is the argument given to the function
An exception is thrown