Which procedure is characterized by the fact that the procedure calls itself again and again till the base condition is met?
किस प्रक्रिया की यह विशेषता होती है कि वह प्रक्रिया स्वयं को बार-बार कॉल करती है जब तक कि आधार शर्त पूरी नहीं हो जाती है?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. Recursive
Explanation
A recursive procedure calls itself with a smaller input until it reaches a base case: factorial(n) = n × factorial(n − 1), with factorial(0) = 1.
रिकर्सिव प्रक्रिया आधार स्थिति (base case) तक पहुँचने तक छोटे इनपुट के साथ खुद को कॉल करती है: factorial(n) = n × factorial(n − 1), factorial(0) = 1।
More Programming Concepts & Python questions
- If a class contains at least one pure virtual function, it is called as ............. class.
- Tuples in Python are :
- In python elements of the list are written inside :
- Pictorial representation of an algorithm is called as :
- In Python dictionary key value pairs are separated by :
- In Python instance methods use ........... as first default parameter.