Open
Description
I'm submitting an ISSUE: please check one with "x"
- New question{'s}
- New assessment
- Missed questions/answers
- Request for new quiz/answers/...
- Documentation issue or request for ...
- ...
Wrong answer from what I can see?
Q97. Which command is used to create a new database in MongoDB?
createDatabase()
useDatabase()
db.createDatabase()
use
The marked "correct answer" is c. db.createDatabase()
. That's wrong isn't it?
Presuming this is the full question, it seems implied to be within mongosh
(Mongo Shell) like most questions, and that means "use" is correct answer, instead of c. db.createDatabase
. Unless I am missing something? But since client.db("newDatabaseName")
isn't an option I don't see a better answer than d. use
.