Question:

.......... means arrange the values in ascending or descending order.

Show Hint

Sorting is a common operation in programming that helps arrange data in a desired order, either ascending or descending.
Updated On: Jan 9, 2026
  • Index
  • Slice
  • Sort
  • Traverse
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the question.
The question asks about the operation that arranges values in ascending or descending order. This operation is known as sorting.
Step 2: Analyzing the options.
(A) Index: This is incorrect. Indexing refers to accessing elements in a sequence, not arranging them.
(B) Slice: This is incorrect. Slicing is used to extract a portion of a sequence, not to sort it.
(C) Sort: Correct — Sorting arranges the values in either ascending or descending order.
(D) Traverse: This is incorrect. Traversing means visiting each element of a sequence, not sorting them.
Step 3: Conclusion.
The correct answer is (C) Sort, as sorting is the operation that arranges values in ascending or descending order.
Was this answer helpful?
0
0