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