1.

Which of the following performs case-insensitive string comparison?(a) $strcasecmpequals(b) $strcasecmp(c) $strcmp(d) None of the mentionedI have been asked this question in an internship interview.My query is from Pipeline and Sharded Collections in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The CORRECT ANSWER is (a) $strcasecmpequals

To explain I would say: $strcasecmp returns 0 if two strings are EQUIVALENT.



Discussion

No Comment Found

Related InterviewSolutions