Q. What happens if the base condition isn’t defined in recursive programs?

  • (A) program gets into an infinite loop
  • (B) program runs once
  • (C) program runs n number of times where n is the argument given to the function
  • (D) an exception is thrown
πŸ’¬ Discuss
βœ… Correct Answer: (A) program gets into an infinite loop
Explanation: the program will run until the system gets out of memory.

Explanation by: Mr. Dubey
the program will run until the system gets out of memory.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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