Function Modularity and Reusability
A function is designed to find the maximum value within a list of numbers. Which of the following best describes a primary benefit of implementing this task as a function?
A
Reduces the total number of values in the list.
B
Increases the computational complexity of the task.
C
Automatically sorts the list in ascending order.
D
Improves code modularity and reusability.
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | vibha.chunduri | 3 | 3 | 2m 05s | 175 |
| #2 | tianbo.shen | 1 | 1 | 1m 19s | 21 |
| #3 | soniahalepota2005 | 1 | 2 | 1m 32s | -2 |
| #4 | 1076342 | 0 | 1 | 0m 00s | -10 |
| #5 | s13242 | 0 | 1 | 0m 00s | -10 |
| #6 | jasonvikathompson | 1 | 3 | 1m 35s | -15 |
| #7 | mahmoudjibrin08 | 0 | 1 | 0m 40s | -50 |
| #8 | bhavneet.singhal | 1 | 3 | 9m 27s | -487 |
Items per page:
10
1 – 8 of 8
