

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
Size specifies a maximum size in bytes for a capped collection. |
A. | Yes |
B. | No |
C. | Can be yes or no |
D. | Can not say |
E. | |
Answer» B. No | |
2. |
Default value of autoIndexId is? |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» C. Can be true or false | |
3. |
Type of optional field capped is? |
A. | String |
B. | Document |
C. | Number |
D. | Boolean |
Answer» E. | |
4. |
Type of parameter Name is? |
A. | String |
B. | Integer |
C. | Boolean |
D. | Array |
Answer» B. Integer | |
5. |
drop() method will return _____, if the selected collection is dropped successfully, otherwise it will return ___________. |
A. | true, true |
B. | false, false |
C. | true, false |
D. | false, true |
Answer» D. false, true | |
6. |
MongoDB ___________ is used to drop a collection from the database. |
A. | db.dropCollection() |
B. | db.collection.delete() |
C. | db.collection.drop() |
D. | db.deleteCollection() |
Answer» D. db.deleteCollection() | |
7. |
How many options parameter there during create collection? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» E. | |
8. |
MongoDB ____________ is used to create collection. |
A. | db.insertCollection(name, options) |
B. | db.createCollection(name, options) |
C. | db.useCollection(name, options) |
D. | db.Collection(name, options) |
Answer» C. db.useCollection(name, options) | |
9. |
What is true about collection? |
A. | Documents within a collection can have different fields. |
B. | A collection is the equivalent of a table in a relational database system. |
C. | A collection exists within a single database. |
D. | All of the above |
Answer» E. | |
10. |
A __________ is a grouping of MongoDB documents. |
A. | database |
B. | node |
C. | collection |
D. | table |
Answer» D. table | |