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