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