MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
For a ______ index, the weight of an indexed field denotes the significance of the field relative to the other indexed fields in terms of the score. |
| A. | unique |
| B. | natural |
| C. | text |
| D. | all of the mentioned |
| Answer» C. text | |
| 2. |
The default weight is ____ for the indexed fields. |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» B. 2 | |
| 3. |
To avoid creating an index with a name that exceeds the index name length limit, you can pass the _____ option to the db.collection.createIndex() method. |
| A. | name |
| B. | lang |
| C. | number |
| D. | all of the mentioned |
| Answer» B. lang | |
| 4. |
FOR_A________INDEX,_THE_WEIGHT_OF_AN_INDEXED_FIELD_DENOTES_THE_SIGNIFICANCE_OF_THE_FIELD_RELATIVE_TO_THE_OTHER_INDEXED_FIELDS_IN_TERMS_OF_THE_SCORE.?$ |
| A. | unique |
| B. | natural |
| C. | text |
| D. | all of the mentioned |
| Answer» C. text | |
| 5. |
THE_DEFAULT_WEIGHT_IS______FOR_THE_INDEXED_FIELDS.?$ |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» B. 2 | |
| 6. |
To avoid creating an index with a name that exceeds the index name length limit, you can pass the _____ option to the db.collection.createIndex() method? |
| A. | name |
| B. | lang |
| C. | number |
| D. | all of the mentioned |
| Answer» B. lang | |
| 7. |
The default name for the index consists of each indexed field name concatenated with _______ |
| A. | _char |
| B. | _textc |
| C. | _text |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 8. |
To use a field with a name other than language, include the ________ option when creating the index. |
| A. | language_over |
| B. | language_override |
| C. | langoverride |
| D. | none of the mentioned |
| Answer» C. langoverride | |
| 9. |
If a collection contains documents or embedded documents that are in different languages, include a field named _______ in the documents. |
| A. | operator |
| B. | lang |
| C. | language |
| D. | all of the mentioned |
| Answer» C. language | |
| 10. |
The default language for the indexed data is ________ |
| A. | chinese |
| B. | english |
| C. | spanish |
| D. | none of the mentioned |
| Answer» C. spanish | |
| 11. |
When creating a text index on multiple fields, you can specify the individual fields or you can use wildcard specifier ______ |
| A. | ($*) |
| B. | (**$**) |
| C. | ($**) |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |