Chapter 3 Final Quiz

Hi All,

Is the intention that we enter the number of documents or the mongo script to find the number in the answer text box?

Also is…

db.scores.count( { “results”: { $elemMatch: { $gte: 70, $lt: 80 } } } )

the same as…

db.scores.find( { “results”: { $elemMatch: { $gte: 70, $lt: 80 } } } ).count()

Thanks

Hi @Daniel_88997,

We do not encourage the practice of posting answers or queries which lead to answer in the discussion forum for the labs, quizzes or final exams. As this may lead to a poor learning experience for other users. Please check your discourse inbox for the detailed explanation of your question.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Of course, it seemed that others were posting answers so I concluded that it was not an issue, I will know for future courses.

Maybe the Chatbot could make this explicit?

Thanks

I will have to disagree with the shubham_ranjan user, if MongoDB did not want questions posted then they should A: not have a forum, B: Delete violating posts like this, C: word their quizzes in proper English, D: actually provide the datasets that you’re asking students to use.

So in my rebuttal query, I will ask for an answer to “How is one supposed to $set a boolean field in sample_training.zips if sample_training.zips was never provided?”

Side Note
Seriously, this course never even covered connecting to your collections in the terminal and all of a sudden you’re expecting us to update information in a collection that doesn’t exist?

If anyone is stuck on this quiz, it helps to know that, as was mentioned above:

  1. zips collection is in the sample_training database;
  2. the zip code field zip seems to be a string and its value needs to be enclosed in quotes, like “12434”;
  3. if you gets disconnected and the shell is not responding, it helps to reload the whole page and reconnect (get the connection string from your MongoDb page, where you loaded the sample data and all) - though I don’t know whether the progress gets saved or not yet;