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. Command to list commands and descriptions of those commands in the context of the database.
db.help([commandName]);
db.<collection>.find([properties]);
help
$unset
2. 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.
$set
minimum value
$inc
db.runCommand({fsync:1,lock:1,async:1})
3. Removes all occurrences of each value in the passed in array from the field. ex: { $pullAll : { field : value_array } }
db.<collection>.insert({document});
db.runCommand({fsync:1,lock:1,async:1})
undefined
$pullAll
4. Deletes documents from the collection based on the selector.
db.cloneDatabase(fromhost)
use <database name>
db.<col>.remove({selector});
Upsert
5. The standard number representation in the javascript shell.
object id
64-bit floating point numbers
array
null
6. 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.
$set
array
Update Modifiers
db.<collection>.insert({document});
7. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
db.runCommand({fsync:1,lock:1,async:1})
db.commandHelp("commandName")
db.commandHelp("commandName")
32-Bit Integer
8. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.
regular expression
Cursor
db.runCommand({fsync:1,lock:1,async:1})
$pullAll
9. Returns all the documents matching the optional properties.
db.<col>.remove({selector});
db.<collection>.find([properties]);
$
$mod
10. 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.cloneDatabase(fromhost)
$pushAll
mongo
db.commandHelp("commandName")
11. Operator allowing the partial specification of fields in an embedded document in an array.
boolean
db.<col>.remove({selector});
db.commandHelp("commandName")
$elemMatch
12. Deletes a given field. ex: { $unset : { field : 1} }
$push
$unset
$not
Update Modifiers
13. 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.
$rename
db.<collection>.findOne([properties]);
$mod
$pull
14. Contains query conditional used to check if a value contains the field value.
$unset
Upsert
db.getLastError()
$in
15. Adds a document to a collection.
Upsert
embedded document
undefined
db.<collection>.insert({document});
16. Binary-encoded serialization of mongo documents.
$all
BSON
Update Modifiers
$gte
17. command to start the mongodb process.
code
$pop
64-bit floating point numbers
mongod
18. 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.
db.cloneDatabase(fromhost)
batch insert
undefined
$all
19. Meta query conditional used to negate the selector.
$not
regular expression
db.help([commandName]);
$pushAll
20. Less than or equal query conditional. ex: db.<col>.find({numVal: {$lte:3}});
$elemMatch
$mod
$lte
Upsert
21. changes the database on which you are working.
$all
$where
use <database name>
Update Modifiers
22. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
db.<collection>.find([properties]);
db.getLastError()
db.<col>.update({selector},{document});
64-Bit Integer
23. Greater than query conditional. ex: db.<col>.find({numVal: {$gt:3}});
show collections
mongod
$gt
$inc
24. Less than query conditional. ex: db.<col>.find({numVal: {$lt:3}});
$lt
db.<col>.update({selector},{document});
db.commandHelp("commandName")
db.<collection>.find([properties]);
25. Returns the size of a document after it is converted to BSON from the JSON-like original.
Object.bsonsize({document});
help
64-bit floating point numbers
db.<collection>.insert({document});
26. Returns all the documents matching the optional properties.
db.<collection>.find([properties]);
$gte
db.<col>.help([commandName]);
$nin
27. 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"}});
binary data
$pull
$size
$set
28. 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
maximum value
boolean
64-bit floating point numbers
29. command to start the mongodb process.
mongod
binary data
$inc
db.commandHelp("commandName")
30. command to start the mongo shell.
db.help([commandName]);
mongo
db.commandHelp("commandName")
boolean
31. Standard javascript regular expressions. These can be stored in documents
array
Update Modifiers
maximum value
regular expression
32. Syntax used for selectors to be specific to a certain element position within an array.
$addToSet
key.index
$nin
db.myCollection.ensureIndex({keypattern},[{options}])
33. Array specific conditional used to select based on the length or set-size of an array field value.
array
mongod
$size
code
34. Lists all the collections in the database in use.
show collections
BSON
use <database name>
$elemMatch
35. Clone the current database (implied by 'db') from another host.
Multi-updates
db.cloneDatabase(fromhost)
db.commandHelp("commandName")
$ne
36. set of UTF-8 characters.
maximum value
$nin
db.myCollection.ensureIndex({keypattern},[{options}])
string
37. Used to describe a variable as not having been initialized.
code
undefined
Multi-updates
64-Bit Integer
38. Updates all matching documents, not just the first, that match the selector.
Upsert
show collections
use <database name>
Multi-updates
39. Used to represent both a null value and a nonexistent field.
help
db.commandHelp("commandName")
key.index
null
40. In BSON - represents the largest possible value.
Object.bsonsize({document});
maximum value
$pushAll
64-Bit Integer
41. String of arbitrary bytes.
binary data
$elemMatch
db.getLastError()
object id
42. Clone the current database (implied by 'db') from another host.
embedded document
32-Bit Integer
64-bit floating point numbers
db.cloneDatabase(fromhost)
43. Update modifier used to increment a value. ex: {"$inc":{"counter":2}}
date
$nin
use <database name>
$inc
44. Does not contain query conditional used to select documents with the field that is not in the selector list of values.
Update Modifiers
$push
$nin
use <database name>
45. Creates an index on property(s). Options can describe the type of sorting, uniqueness, etc.
Cursor
db.myCollection.ensureIndex({keypattern},[{options}])
Object.bsonsize({document});
$set
46. Update a document in the collection.
binary data
db.<col>.update({selector},{document});
array
boolean
47. Command to get help docs on a specific command at the db level.
Object.bsonsize({document});
$gte
db.help([commandName]);
$or
48. Deletes documents from the collection based on the selector.
db.<col>.remove({selector});
$rename
$lte
undefined
49. 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 } }
minimum value
$pop
$not
Update Modifiers
50. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});
use <database name>
date
$ne
$push
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