-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB Q97 -- isn't "c." the wrong answer, shouldn't it be "d."? #6899
Comments
@Rajarshi101 Looks like it was you that recsntly added Q96 and Q97, so please confirm my reported issue, thanks... Your commit: a55830f#diff-ef014af00362697735d705cc0ef59cf89b979f22e83fb83a67db06d023edc0a9R781 |
@Rajarshi101 Also, maybe wrong answer for Q103 too: "Which method is used to remove documents from a collection in MongoDB?" a. deleteOne() b. removeOne() c. drop() d. remove() bd39a3a#diff-ef014af00362697735d705cc0ef59cf89b979f22e83fb83a67db06d023edc0a9R823 You marked "a." as the correct answer, but since the question asks "to remove documents" (plutal) I believe the answer should be "d." Yes, the OR maybe the LinkedIn question is the problem -- poorly worded, should have been written as "Which method is used to remove a document from a collection in MongoDB?" 🙄 idk. Either way, feel free to ignore my suggestions re. corrections for Q97 and Q103, I'm not trying to be argumentative or anything. Thanks for adding the new questions BTW. |
@DarrenSem the question and options are old so i dont think so according to that time, anything is wrong. |
@DarrenSem
|
I'm submitting an ISSUE: please check one with "x"
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 sinceclient.db("newDatabaseName")
isn't an option I don't see a better answer than d.use
.The text was updated successfully, but these errors were encountered: