--:--









Quiz for Recursion

Course: C++ Language | Subject: Unit 3 | Topic: Functions and Function Overloading



Logo

Q1: What is recursion in C++?

Logo

Q2: Which of the following is a key part of a recursive function?

Logo

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

Logo

Q4: Which data structure is used to keep track of recursive calls?

Logo

Q5: What is the result of a recursive function?

Logo

Q6: Which of the following is an example of recursion?

Logo

Q7: What is tail recursion?

Logo

Q8: Can recursion be replaced with iteration?

Logo

Q9: What is a disadvantage of recursion?

Logo

Q10: How does a recursive function return its final result?

Logo

Q11: What is mutual recursion?

Logo

Q12: What must a recursive function do to ensure termination?

Logo

Q13: Which of the following is NOT a good candidate for recursion?

Logo

Q14: How does recursion affect program readability?

Logo

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

Logo

Q16: What is indirect recursion?

Logo

Q17: Which is true about recursive functions?

Logo

Q18: How to avoid stack overflow in recursion?

Logo

Q19: Which function is an example of a recursive call?

Logo

Q20: In recursion, what is the "recursive case"?

Are you ready to start test? Set your time limit