Question 26Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 1 + 1 more paper

The process of removing recursion involves replacing recursive function calls with:पुनरावर्तन को हटाने की प्रक्रिया में पुनरावर्ती फलन कॉल को प्रतिस्थापित करना शामिल है:

पुनरावर्तन को हटाने की प्रक्रिया में पुनरावर्ती फलन कॉल को प्रतिस्थापित करना शामिल है:
  1. AMore recursive function callsअधिक पुनरावर्ती फलन कॉल
  2. BLoopsलूप्स
  3. CAdditional memory allocationअतिरिक्त मेमोरी आवंटन
  4. DNon-recursive function callsगैर-पुनरावर्ती फलन कॉल
Show answerHide answer

Correct answer: (B) Loopsलूप्स

Explanation

Recursion is removed by turning the recursive calls into iteration (loops), often using an explicit stack to keep the state the call stack used to hold.रिकर्शन को हटाने के लिए रिकर्सिव कॉल को इटरेशन (लूप) में बदला जाता है, अक्सर एक स्पष्ट स्टैक का उपयोग करके, जो उस स्थिति को रखता है जिसे कॉल स्टैक रखता था।

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1

This is question 26 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.

Asked in 2 papers