MCQ Attempted/Unattempted

MCQ Test on Recursion

Click on Submit button to get the answers and the score!

Q1

What is the base case in a recursive function?
Q2

Which of the following problems is NOT typically solved using recursion?
Q3

What happens when a recursive function does not have a proper base case?
Q4

In recursive algorithms, what is the time complexity of calculating the 
    
nth Fibonacci number using naive recursion?
Q5

What is tail recursion?
Q6

Which data structure is implicitly used to manage recursive function calls?
Q7

What is the space complexity of a recursive function that makes 
                            
n recursive calls with each call using constant space?
Q8

In the context of recursion, what does "stack frame/activation record" 
                            
refer to?
Q9

Which technique can be used to optimize recursive algorithms
                            
by storing previously computed results?
Q10

What is the primary difference between direct and indirect recursion?
Q11

In the merge sort algorithm, what type of recursion is primarily used?
Q12

What is the recurrence relation for the time complexity of binary search?
Q13

Which of the following is an advantage of iterative solutions over 
                            
recursive solutions?
Q14

In a recursive implementation of factorial(n), how many recursive calls
                            
are made to compute factorial(5)?
Q15

What is the depth of recursion for computing the Greatest Common Divisor
                            
(GCD) of two numbers using Euclidean algorithm?
Q16

Which problem-solving technique naturally leads to recursive solutions?
Q17

What is multiple recursion?
Q18

In quicksort algorithm, what is the nature of the recursive calls?
Q19

What is the primary reason recursion is preferred for
                            
tree traversal algorithms?
Q20

When converting a recursive algorithm to an iterative one,
                            
which data structure is typically used to simulate the call stack?