McqMate
| Q. |
Which of the following methods can be used to find the largest and smallest element in an array? |
| A. | recursion |
| B. | iteration |
| C. | both recursion and iteration |
| D. | no method is suitable |
| Answer» C. both recursion and iteration | |
| Explanation: both recursion and iteration can be used to find the largest and smallest element in an array. | |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet