Multiple choice technology programming languages

How can you sort the elements of the array in descending order

  1. By calling ReverseSort()

  2. By calling SortReverse()

  3. By calling Descend()

  4. By calling Sort() and then Reverse() method

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To sort an array in descending order, you typically first sort the array in ascending order using Sort(), then reverse the sorted array using Reverse(). While some languages may have dedicated methods, this two-step approach is common and reliable.