MCQ Answer

What is tail recursion?

What is tail recursion?

टेल रिकर्शन क्या है?
Topic : Functions in Python

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 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz