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. Meta query conditional used to negate the selector.
$not
Update Modifiers
string
embedded document
2. ...
batch insert
$pull
array
mongod
3. Operator used in the second argument of the find() call to specify which slice of an array to return for an array field.
$pullAll
Cursor
$slice
$elemMatch
4. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.
$set
BSON
Cursor
$unset
5. Clone the current database (implied by 'db') from another host.
$nin
db.cloneDatabase(fromhost)
help
Upsert
6. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
64-Bit Integer
$
$where
help
7. Contains query conditional used to check if a value contains the field value.
db.getLastError()
db.<collection>.find([properties]);
$in
use <database name>
8. Returns the size of a document after it is converted to BSON from the JSON-like original.
string
$gt
$lt
Object.bsonsize({document});
9. String of arbitrary bytes.
binary data
key.index
null
db.myCollection.ensureIndex({keypattern},[{options}])
10. 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 ] } } }
show collections
db.<collection>.insert({document});
$addToSet
$mod
11. Query conditional allowing the selector to choose between more than one optional criteria.
$lte
mongod
$or
date
12. Array specific conditional used to select based on the length or set-size of an array field value.
$addToSet
$lte
$size
code
13. Returns help information for a command.
$pushAll
BSON
db.commandHelp("commandName")
$in
14. Deletes documents from the collection based on the selector.
batch insert
db.<col>.remove({selector});
$unset
mongod
15. Update modifier used to increment a value. ex: {"$inc":{"counter":2}}
$unset
$inc
mongod
$lte
16. Javascript code. Documents can contain code as values.
code
binary data
boolean
$size
17. 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.cloneDatabase(fromhost)
$set
db.runCommand({fsync:1,lock:1,async:1})
null
18. command to start the mongodb process.
db.<collection>.find([properties]);
array
mongod
$unset
19. 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
$ne
db.commandHelp("commandName")
mongod
20. In BSON - represents the smallest possible value.
minimum value
db.<collection>.insert({document});
Cursor
$addToSet
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.
Update Modifiers
db.runCommand({fsync:1,lock:1,async:1})
$size
db.<collection>.find([properties]);
22. Removes all occurrences of a value from a field. ex: { $pull : { field : _value } }
$pull
$rename
show collections
$gte
23. Returns all the documents matching the optional properties.
$inc
db.help([commandName]);
regular expression
db.<collection>.find([properties]);
24. Command to get help docs on a specific command at the db level.
db.<collection>.find([properties]);
db.help([commandName]);
$pull
use <database name>
25. A document contained by a parent document. The embedded document is a value of a key in the parent document.
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
$addToSet
db.<collection>.insert({document});
embedded document
26. Unique 12-byte ID for documents.
help
db.<collection>.find([properties]);
object id
$pull
27. Returns help information for a command.
db.help([commandName]);
$pull
db.commandHelp("commandName")
db.<collection>.findOne([properties]);
28. Less than query conditional. ex: db.<col>.find({numVal: {$lt:3}});
db.<col>.remove({selector});
Upsert
$lt
$pop
29. 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.
$lt
$all
Multi-updates
$not
30. Used to represent both a null value and a nonexistent field.
db.<col>.remove({selector});
mongo
null
$unset
31. changes the database on which you are working.
mongod
use <database name>
db.cloneDatabase(fromhost)
Update Modifiers
32. 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.
$pullAll
binary data
Upsert
Cursor
33. changes the database on which you are working.
db.getLastError()
use <database name>
show collections
$lte
34. Returns information about the last operation. Not necessarily error data - the return can contain things like number of records updated.
Update Modifiers
db.getLastError()
db.<collection>.find([properties]);
db.<col>.update({selector},{document});
35. 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 } }
mongod
$pushAll
regular expression
batch insert
36. Greater than query conditional. ex: db.<col>.find({numVal: {$gt:3}});
$gt
$inc
$all
db.<collection>.insert({document});
37. Updates all matching documents, not just the first, that match the selector.
Multi-updates
minimum value
code
mongod
38. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});
db.commandHelp("commandName")
$ne
$gt
Multi-updates
39. 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.
undefined
db.cloneDatabase(fromhost)
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
$all
40. Used to describe a variable as not having been initialized.
$lte
$all
maximum value
undefined
41. Less than or equal query conditional. ex: db.<col>.find({numVal: {$lte:3}});
Cursor
db.<col>.update({selector},{document});
db.<collection>.find([properties]);
$lte
42. Adds a document to a collection.
mongod
db.<collection>.insert({document});
db.<col>.remove({selector});
$where
43. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
db.<col>.help([commandName]);
$set
help
32-Bit Integer
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 } }
$where
$pop
$inc
db.runCommand({fsync:1,lock:1,async:1})
45. The standard number representation in the javascript shell.
$set
Upsert
db.commandHelp("commandName")
64-bit floating point numbers
46. Standard binary data type.
db.<collection>.insert({document});
maximum value
boolean
$slice
47. Command to get help docs on a specific command at the collection level.
db.<collection>.insert({document});
db.help([commandName]);
db.<collection>.findOne([properties]);
db.<col>.help([commandName]);
48. Set or list of values.
use <database name>
array
$pullAll
embedded document
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 },
date
$size
array
$
50. command to start the mongodb process.
mongod
show collections
$ne
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