Test your basic knowledge |

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Command to get help docs on a specific command at the collection level.






2. Contains query conditional used to check if a value contains the field value.






3. Removes all occurrences of each value in the passed in array from the field. ex: { $pullAll : { field : value_array } }






4. Update call that inserts a new document if no update match is found. Allows the same code to be used for inserts as well as updates.






5. Not supported by the javascript shell and are converted to 64-bit floating point numbers.






6. Operator used in the second argument of the find() call to specify which slice of an array to return for an array field.






7. In BSON - represents the largest possible value.






8. Copies an entire database from one name on one server to another name on another server. Omit frmHostName to copy from one name to another on the same server.






9. command to start the mongodb process.






10. Returns the size of a document after it is converted to BSON from the JSON-like original.






11. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});






12. Binary-encoded serialization of mongo documents.






13. Removes all occurrences of a value from a field. ex: { $pull : { field : _value } }






14. Standard binary data type.






15. Operator allowing the execution of arbitrary javascript as part of the selector.






16. Returns one document matching the optional properties.






17. Returns information about the last operation. Not necessarily error data - the return can contain things like number of records updated.






18. Less than query conditional. ex: db.<col>.find({numVal: {$lt:3}});






19. Standard javascript regular expressions. These can be stored in documents






20. Deletes documents from the collection based on the selector.






21. Adds a document to a collection.






22. Update modifier used to increment a value. ex: {"$inc":{"counter":2}}






23. changes the database on which you are working.






24. command to start the mongodb process.






25. set of UTF-8 characters.






26. Appends a value to field - if the field is an existing array. Otherwise it sets the field to the array [value] if field is not present. ex: { $push : { field : value } }






27. Command to list commands and descriptions of those commands in the context of the database.






28. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.






29. Returns all the documents matching the optional properties.






30. Updates all matching documents, not just the first, that match the selector.






31. Command to get help docs on a specific command at the db level.






32. command to start the mongo shell.






33. Flushes all pending writes to data files. The lock option allows one to safely snapshot the database's data files. The async option returns focus to the console immediately while the task runs in the background.






34. Used to represent both a null value and a nonexistent field.






35. Update modifier that set the value of a key and if the key does not exist, it will create the key. ex: db.<col>.update({selector},{"$set":{"someKey":"someValue"}});






36. Update a document in the collection.






37. Array specific conditional used to select based on the length or set-size of an array field value.






38. Stored as milliseconds since the epoch.






39. changes the database on which you are working.






40. Used to describe a variable as not having been initialized.






41. Not supported by the javascript shell and are converted to 64-bit floating point numbers.






42. Less than or equal query conditional. ex: db.<col>.find({numVal: {$lte:3}});






43. String of arbitrary bytes.






44. Removes an element from an array based on the value of the field option being 1 or -1 for last or first element respectively. ex: { $pop : { field : -1 } }






45. Meta query conditional used to negate the selector.






46. Deletes a given field. ex: { $unset : { field : 1} }






47. Returns help information for a command.






48. Set or list of values.






49. Returns all the documents matching the optional properties.






50. Lists all the collections in the database in use.