Report Bug

QusWhat happens if the base condition isn’t defined in recursive programs? Qusयदि रिकर्सिव फ़ंक्शन में बेस की कंडीशन को डिफाइन नहीं किया जाता है तो क्या होता है?


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


Solution
A. Program gets into an infinite loop



Explanation
The program will run until the system gets out of memory.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad