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. set of UTF-8 characters.
string
Object.bsonsize({document});
$slice
mongo
2. 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.
Upsert
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
db.<collection>.findOne([properties]);
db.<col>.help([commandName]);
3. Returns help information for a command.
$gt
db.commandHelp("commandName")
maximum value
mongod
4. Operator used in the second argument of the find() call to specify which slice of an array to return for an array field.
key.index
$not
$slice
$elemMatch
5. 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 },
mongod
db.getLastError()
Object.bsonsize({document});
$
6. Renames a field from the one indicated to the new field name. ex: { $rename : { old_field_name : new_field_name } }
$rename
BSON
$mod
db.commandHelp("commandName")
7. Returns help information for a command.
$addToSet
db.commandHelp("commandName")
BSON
$gte
8. 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 ] } } }
Upsert
$addToSet
$lte
$or
9. Used to represent both a null value and a nonexistent field.
$lt
null
$all
db.getLastError()
10. Command to get help docs on a specific command at the collection level.
binary data
db.<col>.help([commandName]);
undefined
$all
11. Set or list of values.
$nin
db.myCollection.ensureIndex({keypattern},[{options}])
BSON
array
12. Removes all occurrences of each value in the passed in array from the field. ex: { $pullAll : { field : value_array } }
db.commandHelp("commandName")
string
show collections
$pullAll
13. In BSON - represents the smallest possible value.
db.<collection>.findOne([properties]);
Update Modifiers
minimum value
use <database name>
14. Array specific conditional used to select based on the length or set-size of an array field value.
db.runCommand({fsync:1,lock:1,async:1})
$size
undefined
mongod
15. In BSON - represents the largest possible value.
maximum value
mongo
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
string
16. 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 } }
$pushAll
$ne
$pull
$unset
17. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
Upsert
32-Bit Integer
db.runCommand({fsync:1,lock:1,async:1})
db.getLastError()
18. 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.
$ne
Cursor
show collections
$mod
19. 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
string
Update Modifiers
db.help([commandName]);
20. Returns one document matching the optional properties.
db.<collection>.findOne([properties]);
db.<col>.update({selector},{document});
Upsert
maximum value
21. Less than query conditional. ex: db.<col>.find({numVal: {$lt:3}});
minimum value
$lt
$gt
db.commandHelp("commandName")
22. Syntax used for selectors to be specific to a certain element position within an array.
db.runCommand({fsync:1,lock:1,async:1})
maximum value
key.index
$gte
23. Unique 12-byte ID for documents.
$size
Cursor
$pushAll
object id
24. Adds a document to a collection.
regular expression
use <database name>
db.<collection>.insert({document});
$
25. Used to describe a variable as not having been initialized.
undefined
db.<col>.help([commandName]);
use <database name>
mongod
26. Returns all the documents matching the optional properties.
db.<collection>.find([properties]);
mongo
$pop
boolean
27. Not equal query conditional. ex: db.<col>.find({numVal: {$ne:3}});
binary data
Upsert
$ne
$or
28. Adds a document to a collection.
key.index
db.<collection>.insert({document});
db.cloneDatabase(fromhost)
document
29. command to start the mongo shell.
$set
mongo
mongod
Update Modifiers
30. Lists all the collections in the database in use.
db.runCommand({fsync:1,lock:1,async:1})
show collections
minimum value
embedded document
31. Returns all the documents matching the optional properties.
db.<collection>.find([properties]);
db.commandHelp("commandName")
boolean
$ne
32. Greater than or equal query conditional. ex: db.<col>.find({numVal: {$gte:3}});
$gte
$lt
db.runCommand({fsync:1,lock:1,async:1})
64-Bit Integer
33. Operator allowing the execution of arbitrary javascript as part of the selector.
undefined
db.getLastError()
$where
$set
34. Deletes a given field. ex: { $unset : { field : 1} }
$gt
$size
$unset
key.index
35. The local variable representation of a query. Uniquely - the cursor does not hold the results but instead access to the results.
$size
Cursor
db.<col>.help([commandName]);
$push
36. Operator allowing the partial specification of fields in an embedded document in an array.
$elemMatch
object id
Cursor
mongo
37. Clone the current database (implied by 'db') from another host.
$pop
db.cloneDatabase(fromhost)
64-Bit Integer
$elemMatch
38. String of arbitrary bytes.
db.<collection>.insert({document});
help
string
binary data
39. Less than or equal query conditional. ex: db.<col>.find({numVal: {$lte:3}});
mongo
$lte
key.index
db.<collection>.insert({document});
40. Not supported by the javascript shell and are converted to 64-bit floating point numbers.
64-Bit Integer
db.getLastError()
$
mongod
41. Update a document in the collection.
maximum value
db.<col>.update({selector},{document});
BSON
$lte
42. Standard binary data type.
minimum value
$lte
Object.bsonsize({document});
boolean
43. changes the database on which you are working.
minimum value
db.<col>.remove({selector});
use <database name>
$in
44. 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.
$unset
regular expression
Update Modifiers
$lt
45. Query conditional allowing the selector to choose between more than one optional criteria.
$or
object id
64-bit floating point numbers
db.<col>.remove({selector});
46. Removes all occurrences of a value from a field. ex: { $pull : { field : _value } }
boolean
$pull
document
$in
47. Stored as milliseconds since the epoch.
$gte
show collections
db.<col>.remove({selector});
date
48. Greater than query conditional. ex: db.<col>.find({numVal: {$gt:3}});
$gt
$gte
mongod
date
49. 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.
object id
$where
db.copyDatabase(frmDBName, toDBName, [frmHostName], [user], [pwd]);
db.myCollection.ensureIndex({keypattern},[{options}])
50. A document contained by a parent document. The embedded document is a value of a key in the parent document.
embedded document
db.<col>.remove({selector});
db.<collection>.insert({document});
boolean
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