SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Mongo Db
Start Test
Study First
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. Removes all occurrences of each value in the passed in array from the field. ex: { $pullAll : { field : value_array } }
$elemMatch
$pushAll
$mod
$pullAll
2. The standard number representation in the javascript shell.
32-Bit Integer
64-bit floating point numbers
db.getLastError()
$pushAll
3. Appends each value in the value_array to the field - if field is an existing array. Otherwise - it sets the field to the array value_array - if field is not present ex: { $pushAll : { field : value_array } }
64-Bit Integer
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
$pushAll
batch insert
4. In BSON - represents the smallest possible value.
db.cloneDatabase(fromhost)
boolean
minimum value
$inc
5. Less than or equal query conditional. ex: db.<col>.find({numVal: {$lte:3}});
$push
use <database name>
$lte
$where
6. Operator used in the second argument of the find() call to specify which slice of an array to return for an array field.
$rename
$nin
$slice
date
7. Contains query conditional used to check if a value contains the field value.
minimum value
date
mongod
$in
8. Returns one document matching the optional properties.
$rename
boolean
db.<collection>.findOne([properties]);
$inc
9. Adds a document to a collection.
db.<collection>.findOne([properties]);
$lt
$slice
db.<collection>.insert({document});
10. Operator allowing the partial specification of fields in an embedded document in an array.
mongo
db.runCommand({fsync:1,lock:1,async:1})
Update Modifiers
$elemMatch
11. Standard javascript regular expressions. These can be stored in documents
use <database name>
regular expression
db.<col>.remove({selector});
$push
12. Adds a value to the array only if its not in the array already. Otherwise, if the field is not present, it sets the field to the array value. ex: { $addToSet : { a : { $each : [ 3 , 5 , 6 ] } } }
$rename
$addToSet
db.getLastError()
db.commandHelp("commandName")
13. 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 } }
$pop
$lte
db.<collection>.insert({document});
maximum value
14. Query conditional allowing the selector to choose between more than one optional criteria.
$set
$gte
$or
db.cloneDatabase(fromhost)
15. Clone the current database (implied by 'db') from another host.
db.cloneDatabase(fromhost)
mongo
mongod
db.<col>.update({selector},{document});
16. Update a document in the collection.
mongod
array
show collections
db.<col>.update({selector},{document});
17. Greater than or equal query conditional. ex: db.<col>.find({numVal: {$gte:3}});
db.<col>.remove({selector});
$gte
object id
db.<collection>.find([properties]);
18. Creates an index on property(s). Options can describe the type of sorting, uniqueness, etc.
code
$rename
minimum value
db.myCollection.ensureIndex({keypattern},[{options}])
19. command to start the mongodb process.
mongod
64-bit floating point numbers
$push
$gt
20. Returns all the documents matching the optional properties.
undefined
db.<collection>.find([properties]);
array
db.help([commandName]);
21. Special keys passed in an update call to specify complex update operations - such as alter - adding - or removing keys - and even manipulating arrays and embedded documents.
key.index
$in
Update Modifiers
mongo
22. A document contained by a parent document. The embedded document is a value of a key in the parent document.
$pull
$mod
batch insert
embedded document
23. Lists all the collections in the database in use.
db.commandHelp("commandName")
$
show collections
32-Bit Integer
24. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.
Cursor
$nin
minimum value
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
25. 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 } }
$push
code
$pullAll
$gte
26. Update modifier used to increment a value. ex: {"$inc":{"counter":2}}
$gte
key.index
$slice
$inc
27. Updates all matching documents, not just the first, that match the selector.
64-Bit Integer
Multi-updates
db.commandHelp("commandName")
$
28. Clone the current database (implied by 'db') from another host.
db.cloneDatabase(fromhost)
$unset
batch insert
$lte
29. 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"}});
$set
$push
$size
db.myCollection.ensureIndex({keypattern},[{options}])
30. Operator allowing the execution of arbitrary javascript as part of the selector.
$all
null
binary data
$where
31. Returns help information for a command.
db.<collection>.insert({document});
db.commandHelp("commandName")
db.<collection>.insert({document});
embedded document
32. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});
db.<collection>.insert({document});
db.<col>.remove({selector});
$ne
64-bit floating point numbers
33. Used to represent both a null value and a nonexistent field.
object id
null
$ne
db.cloneDatabase(fromhost)
34. Meta query conditional used to negate the selector.
db.<collection>.findOne([properties]);
$not
use <database name>
$mod
35. Binary-encoded serialization of mongo documents.
document
BSON
db.help([commandName]);
$push
36. Does not contain query conditional used to select documents with the field that is not in the selector list of values.
64-bit floating point numbers
$nin
mongo
$lt
37. set of UTF-8 characters.
code
$gte
string
db.<collection>.find([properties]);
38. Used to describe a variable as not having been initialized.
embedded document
$pull
$gte
undefined
39. ...
64-Bit Integer
string
BSON
batch insert
40. Adds a document to a collection.
64-bit floating point numbers
64-Bit Integer
db.<collection>.insert({document});
use <database name>
41. Set or list of values.
mongod
array
mongo
$pull
42. 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.
mongod
db.<col>.remove({selector});
$size
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
43. Deletes documents from the collection based on the selector.
$size
db.<col>.remove({selector});
db.<collection>.find([properties]);
minimum value
44. Standard binary data type.
$mod
mongod
boolean
db.<col>.remove({selector});
45. Returns all the documents matching the optional properties.
$pullAll
use <database name>
$slice
db.<collection>.find([properties]);
46. Deletes documents from the collection based on the selector.
mongo
db.<col>.remove({selector});
$addToSet
batch insert
47. Stored as milliseconds since the epoch.
date
$where
db.<col>.help([commandName]);
$unset
48. Unique 12-byte ID for documents.
$ne
object id
$gt
$not
49. Positional operator that holds the position of the first matched array item in the query. Used to find an array member and then manipulate it. ex: {$inc:{'comments.$.votes':1}} where comments looks like: "comments" : [ { "by" : "joe", "votes" : 3 },
db.runCommand({fsync:1,lock:1,async:1})
$not
$
use <database name>
50. Returns help information for a command.
$addToSet
$slice
db.commandHelp("commandName")
use <database name>
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests