Iterative Array Traversal
An array named playerScores contains the scores of players in a tournament. To determine the highest score in playerScores, which approach requires an iterative process?
A
Calculating the sum of all scores and dividing by the array length
B
Examining each score in the array to track the maximum value found so far
C
Accessing the score at a predetermined index position
D
Using the first element in the array as the highest score
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | sgarv2513 | 1 | 1 | 0m 00s | 100 |
| #2 | hitrishabhatia | 1 | 1 | 0m 00s | 100 |
| #3 | kimtrinhqldacamle | 1 | 1 | 0m 31s | 69 |
| #4 | y.seong2027 | 1 | 1 | 1m 11s | 29 |
| #5 | suhanakochhar006 | 1 | 1 | 1m 45s | -5 |
| #6 | kwakmk090330 | 0 | 1 | 0m 00s | -10 |
| #7 | gtsak31 | 1 | 1 | 3m 20s | -100 |
APFIVE