Solved

If You Would Like to Sort an Array of Date

Question 22

Multiple Choice

If you would like to sort an array of date values, you should do which of the following?


A) Store the dates as strings because strings can be sorted more effectively than Date objects.
B) Store the dates as Date objects because Date objects can be sorted more effectively than strings.
C) Write an algorithm that parses date strings into their month, day, and year parts.

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