MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following recursive implementation to find the sum of digits of number:Which of the following lines should be inserted to complete thebelow code? |
| A. | (n / 10) + recursive_sum_of_digits(n % 10) |
| B. | (n) + recursive_sum_of_digits(n % 10) |
| C. | (n % 10) + recursive_sum_of_digits(n / 10) |
| D. | (n % 10) + recursive_sum_of_digits(n % 10) |
| Answer» D. (n % 10) + recursive_sum_of_digits(n % 10) | |