Recursion can be used to
A) compute factorials.
B) find the greatest common divisor of two integers (GCD) .
C) program things that cannot be programmed without recursion.
D) All of the above
E) Both A and B, but not C
Correct Answer:
Verified
Q4: A _ function is one that calls
Q5: Any algorithm that can be coded with
Q6: The function int fact(int k)
{
Return k*fact(k-1);
If (k==0)
Q7: The base case of a recursive function
A)
Q8: The _ of recursion is the number
Q10: The QuickSort algorithm was developed in 1960
Q11: The speed and amount of memory available
Q12: Suppose that a recursive function with integer
Q13: The _ algorithm uses recursion to sort
Q14: Indirect recursion means that a function calls
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents