Important Question Basics Of Nosql Database Class 11 Computer Science

Important Question Basics Of Nosql Database Class 11 Computer Science

Important Questions Class 11

Please refer to Important Questions Basics Of Nosql Database Class 11 Computer Science below. These questions and answers have been prepared based on the latest examination guidelines and NCERT book issued for Class 11 Computer Science for the current academic year. We have provided Important Questions for Class 11 Computer Science for all chapters here. Basics Of Nosql Database is an important chapter in Class 11 Computer Science, following Important Questions and their solutions will help you to get more marks in examinations.

Basics Of Nosql Database Class 11 Computer Science Important Questions

Short Answer Type Questions

Question: Explain following terms of MongoDB :
(a) Field (b) Document (c) Collection (d) Database

Answer:

Important Question Basics Of Nosql Database Class 11 Computer Science

Question: Discuss different types of NoSQL databases.
Answer: 1.Key-value Databases
• Just like python dictionary.
• Very simple and flexible.
• Examples-Cassandra, Amazon DyanmoDB, ATS (Azure Table Storage, Riak, BerkeleyDB

2. Document Databases
• These are advanced form of key-value databases.
• Here, key-value pair stores in document in structured or semi-structured form.
• Keys are always of string type, values can be of any type.
• It can be in the form of MS office document, PDFs, XML, JSON ,BSON.
• JSON (JavaScript Object Notation) and BSON (Binary JSON)
Ensure the following specification in cre
• JSON is an open, human & machine understandable standard. Its main format to interchange data on modern web is XML.
• We have learnt use of JSON in Python dictionaries.
• Its examples are – MongoDB, Couch DB DocumentDB etc.

3. Column family stores Databases
• These are known as column store or column family databases and these are column oriented models.
• Column family is a storage mechanism which can –
• Have multiple rows.
• Each row can have multiple columns.
• In this, there is a row key under which there can be multiple columns as shown in the figure.
• Its examples are- Hbase, Cassandra, HyperTable etc.

4. Graph Databases
• It uses graphical model to store data.
• Here, nodes are used to show object whereas edges are used to show relation between those nodes.
• Its examples are- Neo4j, Blazegraph, Titan etc.

Question: What do you understand by NoSQL databases? How are these different from relational databases?
Answer: It is possible to have database without any structure or record. NoSQL or Not Only SQLDatabases are such databases. These are non-relational databases which does not have any strictor rigid structure. These do not store records on the basis of conventional tables. These run inclusters and store data on the basis of web. These are high in scalability. These are also known asbig data.

• These provide fast response time.
• These can handle data of any kind without any restriction.
• These adopt new features and fast update.
• These do not show down time.

Question: What is MongoDB? Which category of NoSQL does it belong to?
Answer: MongoDB is a document-oriented NoSQL database. It supports dynamic schemas which shows data in JSON format. It is a free open source software which gives scalability and high performance. It is Document Database Type of NoSQL database.

Question: What are the main categories of NoSQL databases?
Answer: 1. Key-value Databases
2. Document Databases
3.Column family stores Databases
4. Graph Databases

Question: What are the advantages and disadvantages of NoSQL databases?
Answer:

Important Question Basics Of Nosql Database Class 11 Computer Science

Question: What is JSON Format?
Answer: JSON (JavaScript Object Notation) is an open, human & machine understandable standard. Itsmain format to interchange data on modern web is XML. We have learnt use of JSON in Python dictionaries.

Important Question Basics Of Nosql Database Class 11 Computer Science

Answer: The Asked commands will be
1. >use newdb
>newdb.people.save({name:‘Faqir‘,age:21,salary:17000})
Note: all the records will be added in the same manner.
2. >newdb.people.find()
3. >newdb.people.find({name:‘Mohan‘})
4. >newdb.people.find({age:{$gt:20}})
5. >newdb.people.find({age:{$lte:24}})
6. >newdb.people.find({―name‖:{$type:‖double‖}})
7. >newdb.people.update({name:‘Mohan‘},{$set:{age=79}})
8. >newdb.people.updatemany({$and:[{age:{$gte:20}},{age:{$lte25}}]},{$set:{salary=27000}})
9. >newdb.people.deleteone({salary:{$lt:30000}})
10. >newdb.people.deletemany({salary:{$lt:30000}})

Important Question Basics Of Nosql Database Class 11 Computer Science