Skip to content

MongoDB Q97 -- isn't "c." the wrong answer, shouldn't it be "d."? #6899

Open
@DarrenSem

Description

@DarrenSem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions