You would like to print each score on its own line with its cardinal position. Without using 'var' or 'val', which method allows iteration with both the value and its position?kotlinfun main() { val highScores = listOf(4000, 2000, 10200, 12000, 9030)}

🎲 Try a Random Question  |  Total Questions in Quiz: 83  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Kotlin Quiz — practice the complete quiz, review flashcards, or try a random question.

Kotlin MCQs For LinkedIn Skill Assessments.


You would like to print each score on its own line with its cardinal position. Without using 'var' or 'val', which method allows iteration with both the value and its position?<br>kotlin<br>fun main() {<br> val highScores = listOf(4000, 2000, 10200, 12000, 9030)<br>}<br>