McqMate

Q. |
## Recursion is similar to which of the following? |

A. | switch case |

B. | loop |

C. | if-else |

D. | if elif else |

Answer» B. loop | |

Explanation: recursion is similar to a loop. |

3.8k

0

Do you find this helpful?

32

View all MCQs in

Design and Analysis of AlgorithmsNo comments yet

- Which of the following problems can’t be solved using recursion?
- Recursion is a method in which the solution of a problem depends on
- Which of the following is similar to Euclidean distance?
- Which of the following problems is similar to that of a Hamiltonian path problem?
- Suppose you have coins of denominations 1,3 and 4. You use a greedy algorithm, in which you choose the largest denomination coin which is not greater than the remaining sum. For which of the following sums, will the algorithm produce an optimal answer?
- Which of the following strategies does the following diagram depict?
- Which of the following strategies does the following diagram depict?
- You are given n dice each having f faces. You have to find the number of ways in which a sum of S can be achieved. This is the dice throw problem. Which of the following methods can be used to solve the dice throw problem?
- In general, which of the following methods isn’t used to find the factorial of a number?
- Which of the following recursive formula can be used to find the factorial of a number?