Question
What is 'recursion' in
programming?Solution
Recursion requires a base case (stopping condition) and a recursive case. Example: factorial(n) = n Γ factorial(n-1), base case factorial(0) = 1. Without a base case, recursion causes a StackOverflow error. Recursive algorithms include tree traversal, binary search, merge sort, and Fibonacci series. Each recursive call uses stack memory.Deep recursion can be replaced with iteration for memory efficiency.
Cinnabar is an ore of which metal?
Which gas is the chief component of Bio-gas?
Which of the following is used in alcoholic drinks?
Whose experiments supports Abiotic synthesis?
Which of the following pollutants is the major contributor to photochemical smog?
Which of the following fatty acids does NOT form soap?
Which of the following is the richest source of phosphorus?
"Schist" is the example of which type of rock?
Which element is known as the 'King of Chemicals.
_____________ has the maximum attraction force between the molecules.