Q. Which of the following statements is false about recursion?

  • (A) every recursive function must have a base case
  • (B) infinite recursion can occur if the base case isn’t properly mentioned
  • (C) a recursive function makes the code easier to understand
  • (D) every recursive function must have a return value
πŸ’¬ Discuss
βœ… Correct Answer: (D) every recursive function must have a return value
Explanation: a recursive function needn’t have a return value.

Explanation by: Mr. Dubey
a recursive function needn’t have a return value.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
566
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate