®
Sri Sai Vidya Vikas Shikshana Samithi
SAI VIDYA INSTITUTE OF TECHNOLOGY
Approved by AICTE, New Delhi, affiliated to VTU, Recognized by Govt. of Karnataka.
Accredited by NBA, New Delhi (CSE, ECE, ISE), NAAC – “A” Grade
DEPARTMENT OF Computer SCIENCE AND ENGINEERING
RAJANUKUNTE, BENGALURU – 560 064, KARNATAKA
Phone: 080-28468191/96/97/98 * E-mail: hoddatascience@[Link] * URL [Link]
Module-3: Introduction to MongoDB BTL CO
1. What is MongoDB? Explain why MongoDB is required by
explaining the following:
a. Java Script Object Notation(JSON)
b. Process of Creating or Generating a Unique Key.
c. Support for Dynamic Queries 2 3
d. Storing Binary Data
e. Replication
f. Sharding
g. Updating Information In-Place
2. List the terms used in RDBMS and MongoDB with
1 3
description.
3. Explain the data types in MongoDB with example. 2 3
4. Explain the following with syntax and example using
MongoDB queries.
3 3
a. Creating database
b. Dropping database
5. Write the MongoDB shell command for the following.
a. To report the name of the current database
b. To display the list of all databases
c. To switch to a new database
3 3
d. To display the list of collections (tables) in the
current database
e. To display the current version of the MongoDB
server
6. Given a collection named Students with the following
fields: StudRollNo, StudName, Grade, Hobbies, DOJ
Write MongoDB commands to perform the following
operations
i) Insert the details of one student
ii) Display the details of the student having rollno 101 3 3
iii) Change the hobby of the student named “Rahul” from
Cricket to Football
iv) Delete the record of the students belonging to V grade.
v) Retrieve the details of students whose names start with
the letter 'B'
7. Explain the following methods with an example for each
i) Save()
3 3
ii) Find()
iii) Pretty()
®
Sri Sai Vidya Vikas Shikshana Samithi
SAI VIDYA INSTITUTE OF TECHNOLOGY
Approved by AICTE, New Delhi, affiliated to VTU, Recognized by Govt. of Karnataka.
Accredited by NBA, New Delhi (CSE, ECE, ISE), NAAC – “A” Grade
DEPARTMENT OF Computer SCIENCE AND ENGINEERING
RAJANUKUNTE, BENGALURU – 560 064, KARNATAKA
Phone: 080-28468191/96/97/98 * E-mail: hoddatascience@[Link] * URL [Link]
iv) Count()
v) Skip()
vi) Insert()
vii) Update()
viii) Remove()
ix) Dealing with Null values
x) Limit()
xi) Sort()
xii) Arrays
xiii) Aggregate()
8. Explain the following in MongoDB:
a. Mapreduce function
b. Java Script Programming
c. Cursors in MongoDB
d. Indexes 2 3
e. Mongoimport
f. Mongoexport
g. Automatic Generation of Unique Numbers for the
_id Field
9. Implement Functions: Count – Sort – Limit – Skip –
3 3
Aggregate using MongoDB.
Course Coordinator HOD