This Quiz contains totally 10 Questions each carry 1 point for you.
1. MongoDB ______ is used to create database.
create database_name
use database_name
insert database_name
show database_name
Correct!
Wrong!
2. use database_name command will create a new database if it doesn't exist, otherwise it will return the existing database.
yes
No
Can be yes or no
Cannot say
Correct!
Wrong!
3. In MongoDB default database is ________.
local
test
mydb
temp
Correct!
Wrong!
4. If you didn't create any database, then collections will be stored in _______ database.
local
test
mydb
temp
Correct!
Wrong!
5. MongoDB ___________ command is used to drop a existing database.
db.drop()
db.dropDatabase()
db.deleteDatabase()
db.delete()
Correct!
Wrong!
6. If you have not selected any database, then it will delete _________ database.
local
test
mydb
temp
Correct!
Wrong!
7. Does we need to use "use database_name" before dropping database?
yes
No
Can be yes or no
Cannot say
Correct!
Wrong!
8. How many database present after mondb installation?
1
2
3
4
Correct!
Wrong!
9. What will be mongodb output when we use "use mydb" command?
created db mydb
new db mydb
switched to db mydb
none of the above
Correct!
Wrong!
10. If you created database (mydb) is not present in list. To display database, you need to insert at least one document into it.
yes
No
Can be yes or no
Cannot say
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
Mongo-DB-Quiz-8
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...
