--:--









Quiz for Recursion

Course: C Language | Subject: Unit 4 | Topic: Functions in C



Logo

Q1: What is recursion in C?

Logo

Q2: Which of the following is required for recursion to work correctly?

Logo

Q3: What will happen if a recursive function does not have a base case?

Logo

Q4: Which of these is an example of direct recursion?

Logo

Q5: Which is an example of indirect recursion?

Logo

Q6: In recursion, each function call is stored in which memory area?

Logo

Q7: Which problem is best solved using recursion?

Logo

Q8: Which of the following is NOT a drawback of recursion?

Logo

Q9: What is tail recursion?

Logo

Q10: Which function is an example of tail recursion?

Logo

Q11: Recursion can be replaced by which iterative method?

Logo

Q12: Which is more memory efficient, recursion or iteration?

Logo

Q13: What is the main difference between recursion and iteration?

Logo

Q14: Which is a common use of recursion in data structures?

Logo

Q15: What is the maximum depth of recursion limited by?

Logo

Q16: Which keyword is used to return from a recursive function?

Logo

Q17: Which of these algorithms is naturally recursive?

Logo

Q18: What happens in each recursive call?

Logo

Q19: Recursion is generally less efficient than iteration because:

Logo

Q20: Which type of problems are NOT suited for recursion?

Are you ready to start test? Set your time limit