Direction: Choose the correct option
Q1.
What is recursion in Python?
Direction: Choose the correct option
Q2.
What is a base case in recursion?
Direction: Choose the correct option
Q3.
What happens if a recursive function has no base case?
Direction: Choose the correct option
Q4.
What is the output of `def fact(n): return 1 if n==0 else n*fact(n-1); print(fact(3))`?
Direction: Choose the correct option
Q5.
What does `def count(n): if n<=0: return; print(n); count(n-1); count(3)` print?
Direction: Choose the correct option
Q6.
What is the maximum recursion depth in Python (default)?
Direction: Choose the correct option
Q7.
Which of the following problems is commonly solved with recursion?
Direction: Choose the correct option
Q8.
How does recursion compare to iteration in terms of memory?
Direction: Choose the correct option
Q9.
What is tail recursion?
Direction: Choose the correct option
Q10.
What is the output of `def f(n): if n==0: return 0; return n + f(n-1); print(f(3))`?
