Solved

To Sort an Array of Objects, You Need to Define

Question 21

Multiple Choice

To sort an array of objects, you need to define a comparison function. The comparison function:


A) uses lexicographical ordering to perform the sort operation.
B) uses standard numerical ordering to perform the sort operation.
C) receives two elements from the array and returns a negative number, zero, or a positive number.
D) receives two elements from the array and returns true if the two elements should be swapped.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents