NIELIT O Level Exam

What is tail recursion?

What is tail recursion?

टेल रिकर्शन क्या है?

A. A recursive function that has two base cases एक रिकर्सिव फ़ंक्शन जिसमें दो बेस केसेस हैं

B. A function where the recursive functions leads to an infinite loop एक फ़ंक्शन जहां रिकर्सिव फ़ंक्शन एक इनफिनिट लूप की ओर जाता है

C. A recursive function where the function doesn’t return anything and just prints the values एक रिकर्सिव फ़ंक्शन जहां फ़ंक्शन कुछ भी वापस नहीं करता है और केवल वैल्यूज को प्रिंट करता है

D. A function where the recursive call is the last thing executed by the function एक फ़ंक्शन जहां रिकर्सिव कॉल फ़ंक्शन द्वारा एक्सेक्यूटेड लास्ट चीज़ है




Correct Answer is :

D. A function where the recursive call is the last thing executed by the function



Explanation
A recursive function is tail recursive when recursive call is executed by the function in the last.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad