wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

NGT 6th chap

Total questions: 37

Worksheet time: 19mins

Name
Class
Date
1.

CRUD

a)

Create, Read, Update, and Delete

b)

Create, Real, Update, and Delete

c)

Create, Read, Update, and Detect

d)

Cancel, Read, Update, and Delete

2.

Importing CSV file

a)

Mongoimport --db_name --col_name --CSV --ffile_path --headerline

b)

mongoimport --db db_name --collection col_name --type

CSV --file file_path --headerline

c)

Mongoimport --db db_name --collection col_name --type

CSV --file file_path --headerline

d)

MongoImport --db db_name --collection col_name --type

CSV --file file_path --headerline

3.

See the list of Database

a)

show dbs

b)

show db

c)

use dbs

d)

use db

4.

Drop database

a)

db.dropDatabase()

b)

dropDatabase(db)

c)

db.drop()

d)

dropdatabase(db)

5.

Creating a new collection named products

a)

products = new Collection()

b)

products.createCollection()

c)

db.CreateCollection("products")

d)

db.createCollection("products")

6.

Insert a document in products collection

a)

db.products.insert(name:"Hello world")

b)

db.products.insert({"name":"Hello world"})

c)

db.collection(products).insert({name:"Hello world"})

d)

db.collection("products").insert({name:"Hello world"})

7.

Retrieve all entries from database of roll number 8

a)

db.student.find({"roll_no": "8"})

b)

db.student.find({"roll_no": 8})

c)

db.student.Find({"roll_no": 8})

d)

db.student.FindAll({"roll_no": 8})

8.

Retrive only the Name and roll_no of all Students with percentage greater than 75

a)

db.students.find({percentage:{$gt:"75"},{"Name":1,"roll_no":1})

b)

db.students.find({percentage:{$gt:"75","Name":1,"roll_no":1})

c)

db.students.find({percentage:($gt:"75"),{"Name":1,"roll_no":1})

d)

db.students.find({percentage:{$gt:75},{"Name":0,"roll_no":0})

9.

Retrive the top 5 scorers in maths using sort() and limit() functions

a)

db.students.find().sort("Maths":-1).limit(5)

b)

db.students.find().sort("Maths":1).Limit(5)

c)

db.students.find().Sort("Maths":1).Limit(5)

d)

db.students.find({"Maths":{$gt}}).sort("Maths":-1).limit(5)

10.

________ method returns the first occurrence in the selection.

a)

limit()

b)

sort()

c)

find()

d)

findOne()

11.

When find() method is called the method returns a ________ object

a)

Array

b)

Document

c)

Cursor

d)

None of the above

12.

Indexes makes retrieving data ________

a)

Faster

b)

Slower

c)

Does not affect retriving

d)

visible

13.

default mongodb index

a)

id

b)

_id

c)

__id

d)

id_

14.

Which is not a type of index

a)

Single key index

b)

Compound index

c)

Unique index

d)

Scalable index

15.

Creating a system index

a)

db.collection.sysindex({"Name"})

b)

db.collection.sysIndex({"Name"})

c)

db.collection.sysindex({"Name":1})

d)

None of the above

16.

Given the following array of roll numbers retrieve the documents: [1,3,5,7]

a)

db.student.find("roll_no":{$in:[1,3,5,7]})

b)

db.student.find("roll_no":{$nin:[1,3,5,7]})

c)

db.student.find("roll_no":$nin:[1,3,5,7])

d)

db.student.find("roll_no":$in:[1,3,5,7])

17.

_______ is a data processing paradigm for condensing large volumes of data into useful aggregated results.

a)

Map-reduce

b)

Map

c)

Reduce

d)

$ag

18.

______ can be used instead of map-Reduce

a)

$group

b)

$aggregate

c)

$ag

d)

$ags

19.

Creating Index Ensures uniqueness

a)

True

b)

False

20.

If you wish to make a non-unique index into a unique index you have to compulsorily drop it and recreate a new index

a)

True

b)

False

21.

JOIN's are not supported in Mongodb

a)

True

b)

False

22.

When you update data in your database, you must ensure that your update either succeeds or fails entirely, never having a “partial success,” and that no other database reader ever sees an incomplete write operation. This is called _______

a)

Atomicity

b)

Isolation

c)

ACID

d)

Duplicity

23.

_______ is inserting related documents into a single document.

a)

Referencing

b)

Embeding

c)

Mixing

d)

Sharding

24.

________ is storing related documents into different documents and linking them using _id

a)

Refrencing

b)

Sharding

c)

Objecting

d)

Embedding

25.

Embedding results in _______

a)

data isolation

b)

data atomicity

c)

increasing data redundancy

d)

removing data redundancy

26.

Referencing results in _______

a)

data redundancy

b)

data isolation

c)

removing data redundancy

d)

data atomicity

27.

Normal form in SQL is equivalent to ________ concept in MongoDB

a)

Refrencing

b)

Embeding

c)

Sharding

d)

Manormalization

28.

A table in SQL is equivalent to a _______ in MongoDB

a)

Document

b)

Collection

c)

Database

d)

Shard

29.

A row in SQL is equivalent to a _______ in MongoDB

a)

Document

b)

Collection

c)

Database

d)

Shard

30.

Mongodb documents have a hard size limit of ______

a)

8 MB

b)

16 MB

c)

32 MB

d)

128 MB

31.

Storage of database is not dependent on which of the following factors

a)

Sharding

b)

A Large Number of Collection

c)

Data Life Cycle Management

d)

Data retrieval queries

32.

This feature needs to be used if your application has datasets that need to be persisted in the database only for a limited time period.

a)

Data Isolation

b)

Data Lifecycle Management

c)

Data Shading

d)

Data Refrencing

33.

Minimum data space required by each index

a)

8 KB

b)

1 KB

c)

4 KB

d)

0 KB

34.

_____ are beneficial for collections with heavy read operations such as where the proportion of read-to-write operations is high

a)

Indexes

b)

Isolations

c)

Refrences

d)

Data redundancy

35.

The un-indexed read operations are affected by an index.

a)

True

b)

False

36.

Partitioning Data is called

a)

Sharding

b)

Redundancy

c)

Reduction

d)

Atomicity

37.

The _id does not require any minimum data space.

a)

True

b)

False