Q. Which function can be used to sort an array in ascending order?

  • (A) sort()
  • (B) rsort()
  • (C) asort()
  • (D) ksort()
πŸ’¬ Discuss
βœ… Correct Answer: (A) sort()
Explanation: sort() sorts indexed arrays in ascending order.
Explanation by: Rati Dubey
sort() sorts indexed arrays in ascending order.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
108
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
99%
Success Rate