Vidyalelo
Computer Science · Q275

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 275

Q275

You have an unordered list of high scores. Which is the simple method to sort the highScores in descending order? fun main() val highScores = listOf(4000, 2000, 10200, 12000, 9030)

A.
.sortedByDescending()
B.
.descending()
C.
Public
Answer
D.
.sort()

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board