Skip to content
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

Open
1 of 6 tasks
DarrenSem opened this issue Nov 4, 2023 · 4 comments
Open
1 of 6 tasks

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

DarrenSem opened this issue Nov 4, 2023 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@DarrenSem
Copy link

DarrenSem commented Nov 4, 2023

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.

@DarrenSem
Copy link
Author

DarrenSem commented Nov 4, 2023

@Rajarshi101 Looks like it was you that recsntly added Q96 and Q97, so please confirm my reported issue, thanks...

Your commit: a55830f#diff-ef014af00362697735d705cc0ef59cf89b979f22e83fb83a67db06d023edc0a9R781

@DarrenSem
Copy link
Author

@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 .remove() method is technically deprecated -- but .deleteMany() is not a listed option here, which would be preferred over "a." ( which the docs say "Removes a single document from a collection" ).

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.

@haxkd
Copy link
Contributor

haxkd commented Nov 5, 2023

@DarrenSem the question and options are old so i dont think so according to that time, anything is wrong.

@Ebazhanov Ebazhanov added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 5, 2023
@Rajarshi101
Copy link
Contributor

@DarrenSem
Thank you for your suggestions. I was not ignoring them, its just that I wasn't able to check them as I was going through my college semester examinations. Sorry for late reply.

  1. Yes, answer to question number 97 is incorrect. I am rectifying it.
  2. Yes, the question number 103 is phrased incorrectly. The option is correct, but the question should have been for singular document. I am rectifying it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants