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. Returns all the documents matching the optional properties.
Update Modifiers
$nin
db.<collection>.find([properties]);
$gte
2. Used to represent both a null value and a nonexistent field.
$inc
null
$not
db.<col>.remove({selector});
3. Returns all the documents matching the optional properties.
64-Bit Integer
db.<collection>.find([properties]);
$all
db.commandHelp("commandName")
4. 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.
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
maximum value
$pushAll
Update Modifiers
5. Operator used in the second argument of the find() call to specify which slice of an array to return for an array field.
$slice
object id
64-Bit Integer
mongo
6. set of UTF-8 characters.
string
db.<col>.update({selector},{document});
Upsert
db.help([commandName]);
7. Array specific conditional used to select based on the length or set-size of an array field value.
64-Bit Integer
minimum value
$size
maximum value
8. Operator allowing the partial specification of fields in an embedded document in an array.
$elemMatch
mongo
db.getLastError()
$slice
9. 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 ] } } }
array
Cursor
$addToSet
boolean
10. A document contained by a parent document. The embedded document is a value of a key in the parent document.
null
embedded document
mongod
$gt
11. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});
$slice
$ne
show collections
$inc
12. Removes all occurrences of each value in the passed in array from the field. ex: { $pullAll : { field : value_array } }
$pullAll
string
help
32-Bit Integer
13. Returns help information for a command.
db.commandHelp("commandName")
db.getLastError()
db.cloneDatabase(fromhost)
db.<collection>.find([properties]);
14. Does not contain query conditional used to select documents with the field that is not in the selector list of values.
db.myCollection.ensureIndex({keypattern},[{options}])
$pushAll
$in
$nin
15. Command to get help docs on a specific command at the db level.
$pullAll
mongo
$gte
db.help([commandName]);
16. String of arbitrary bytes.
db.<collection>.insert({document});
$unset
binary data
$slice
17. 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 } }
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
$unset
$inc
$pushAll
18. Binary-encoded serialization of mongo documents.
Object.bsonsize({document});
BSON
date
use <database name>
19. Meta query conditional generating a modulus with the selector operand. Checks to see if the field value when divided by one value has the remainder of the second value.
mongod
$mod
$unset
mongo
20. Operator allowing the execution of arbitrary javascript as part of the selector.
db.<col>.help([commandName]);
$unset
db.<col>.remove({selector});
$where
21. Renames a field from the one indicated to the new field name. ex: { $rename : { old_field_name : new_field_name } }
binary data
$pullAll
$rename
$in
22. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.
Cursor
$
$set
Multi-updates
23. 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 } }
code
$elemMatch
64-Bit Integer
$pop
24. Clone the current database (implied by 'db') from another host.
db.<col>.update({selector},{document});
db.cloneDatabase(fromhost)
db.commandHelp("commandName")
mongod
25. Array specific conditional allowing matching on multiple elements within an array. The operation is non strict on the sequence of the values in the passed selector array.
$all
db.<collection>.find([properties]);
$not
date
26. Stored as milliseconds since the epoch.
$nin
date
db.cloneDatabase(fromhost)
$in
27. command to start the mongodb process.
mongod
db.help([commandName]);
db.myCollection.ensureIndex({keypattern},[{options}])
db.<collection>.insert({document});
28. command to start the mongo shell.
mongo
code
help
use <database name>
29. command to start the mongo shell.
null
mongo
$set
minimum value
30. changes the database on which you are working.
use <database name>
$or
$gt
$nin
31. Contains query conditional used to check if a value contains the field value.
$in
minimum value
$lte
$size
32. Returns help information for a command.
null
db.commandHelp("commandName")
$all
$gte
33. 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.
$pushAll
mongod
Update Modifiers
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
34. 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.
db.help([commandName]);
db.<collection>.insert({document});
$or
db.runCommand({fsync:1,lock:1,async:1})
35. Standard binary data type.
boolean
batch insert
db.<col>.update({selector},{document});
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
36. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
Cursor
64-Bit Integer
document
db.commandHelp("commandName")
37. Deletes documents from the collection based on the selector.
key.index
mongod
$rename
db.<col>.remove({selector});
38. The standard number representation in the javascript shell.
64-bit floating point numbers
db.<col>.update({selector},{document});
embedded document
string
39. In BSON - represents the largest possible value.
$pushAll
db.commandHelp("commandName")
maximum value
$pop
40. Updates all matching documents, not just the first, that match the selector.
Multi-updates
$pullAll
maximum value
mongo
41. 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
$pop
$
embedded document
42. Update a document in the collection.
key.index
db.<col>.update({selector},{document});
document
boolean
43. Data structure used to store all other data in mongo databases.
$pull
minimum value
document
Object.bsonsize({document});
44. ...
$push
$pop
$nin
batch insert
45. Query conditional allowing the selector to choose between more than one optional criteria.
$or
db.cloneDatabase(fromhost)
embedded document
string
46. Meta query conditional used to negate the selector.
$mod
key.index
$set
$not
47. Command to get help docs on a specific command at the collection level.
string
use <database name>
db.<col>.help([commandName]);
db.runCommand({fsync:1,lock:1,async:1})
48. Returns the size of a document after it is converted to BSON from the JSON-like original.
$nin
$or
Object.bsonsize({document});
object id
49. Command to list commands and descriptions of those commands in the context of the database.
64-bit floating point numbers
string
help
date
50. Creates an index on property(s). Options can describe the type of sorting, uniqueness, etc.
db.myCollection.ensureIndex({keypattern},[{options}])
regular expression
$set
use <database name>
Sorry!:) No result found.
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