Home »
MCQs »
MongoDB MCQs
MongoDB supports searching by ___
16. MongoDB supports searching by ___.
- Field
- Range queries
- Regular expression searches
- All of the mentioned above
Answer: D) All of the mentioned above
Explanation:
Ad hoc queries in MongoDB are supported by searching by field, range queries, and regular expression searches, among other search options. In order to return specific fields within documents, queries can be created. Ad-hoc queries are those that were not anticipated when the database was being built. Consequently, MongoDB provides ad-hoc query support, which distinguishes it from other databases in this situation. Ad-hoc queries are updated in real time, resulting in a significant improvement in the performance of the system.