1. | Which of the following algorithm cannot be designed without recursion − |
Answer: (d).None of the above
|
2. | What about recursion is true in comparison with iteration? |
Answer: (d).all of the above are true.
|
3. | The following formula will produce Fn = Fn-1 + Fn-2 |
Answer: (b).Fibonacci Series
|
4. | Tower of hanoi is a classic example of |
Answer: (d).Both A & B
|
5. | Recursion uses more memory space than iteration because |
Answer: (b).every recursive call has to be stored.
|
6. | A procedure that calls itself is called |
Answer: (c).recursive
|
7. | If there's no base criteria in a recursive program, the program will |
Answer: (c).execute infinitely.
|
8. | An algorithm that calls itself directly or indirectly is known as |
Answer: (b).Recursion
|
9. | Which Data Structure is used to perform Recursion? |
Answer: (b).Stack
|
10. | What’s happen if base condition is not defined in recursion ? |
Answer: (b).Stack Overflow
|