Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
DMSA Question Bank
Unit I Introduction to Databases
1. What is Data Model and list the types?
2. What is E- R model? Define E-R diagram.
3. What is an Entity?
4. What is Weak Entity set and strong entity set?
5. What is an attribute? What are stored and derived attributes, and composite attributes?
6. What is DDL (Data Definition Language).Give example of each?
7. What is DML (Data Manipulation Language)? Give example of each?
8. What are a candidate key, primary key, unique key and foreign key?
9. State the advantages of DBMS
10. Explain in brief –
a. Data Abstraction
b. Data Independence
11. Explain with example DDL and DML
12. Compare DBMS and File Processing System
13. Define following –
a. Tuple
b. Attribute
c. Schema
d. Domain
14. State and brief how following disadvantages of File Processing System are eliminated in
DBMS.
a. Data Redundancy
b.Integrity
15. Write short note on data model
16. Define Database. Explain DBMS with example.
17. What is a data model? Explain all types of data models.
18. What are different types of databases? Explain any one (open-source) database.
19. What does it mean by Relational Database? Explain legacy relational model
20. What are Object oriented databases? How they differ from relational databases?
21. Explain E-R model with an Example.
22. Define Normalization. List all Normal Forms.
23. Explain 3 NF with example.
24. Define SQL. Explain DDL & DML statements. (In accordance with an open source DB
system (MySQL)).
25. Explain DCL & TCL statements with example.
26. Define View. Explain all types of Views.
27. Define Index. Explain all types of Indices. Explain the purpose of Index.
28. Explain the process of Normalization with example.
29. Draw/Construct
an E-R diagram for University Database/Airline Reservation
System/any other management system
30. Define the following terms with suitable example
a. Super Key
b. Candidate Key
c. Primary Key
d. Foreign Key
31. Explain in brief different levels of data abstraction.
32. Write short note on
a. ER Model
b. Mapping constraint
33. Explain different attribute types with respect to ER model.
34. Discuss the following concepts in the context of relational model
a. Relation
b. Attribute
c. Domain
d. Degree
e. Tuple
35. Discuss the difference between primary key and foreign key.
36. Explain in brief Data Independence and its types
37. Explain 3NF with suitable example.
38. What is normalization? Explain various forms of normalization.
a. Explain following concepts in the context of MySql
b. Inner Join
c. Right Outer Join
d. Left Outer Join
39. Draw an ER diagram for online book store. Cleary mention your assumptions.
40. Explain instance and schema of database.
41. Compare file processing system and DBMS based on following points
a. Data Isolation
b. Integrity
c. Atomicity
d. Security
42. What is meant by mapping cardinality?
43. What is BCNF? How does it differ from 3NF?Why is it considered as stronger than
3NF?
44. Difference between first normal form and second normal form.
45. Compare Relational data model,Hierarchical data model and Network data Model.
46. Consider following database
Student(Roll_no,Name,Address)
Subject(Sub_code,Sub_name)
Marks(Roll_no,Sub_code,marks)
Write following queries in sql
a) Find average marks of each student along with name of student
b) Find how many student have failed in subject “DMSA”
47. Draw ER Diagram for hospital management system. Convert ER into tables. Create all
Tables with relationship.
48. Explain significant difference between file processing and DBMS.
49. Explain concept of normalization. Explain BCNF.
50. Explain in details the different levels of data abstraction
51. Explain create Insert update and delete operation with respect to views.
52. Define foreign key, primary key , unique key constraints with example of each.
53. Write a short note on
a) TCL
b) index
c) sequence
54. Explain types of joins in sql. [6]
55. Explain referential integrity. Also discuss the situations when referential integrity
constraint is getting violated by insert,delete and update operations on the relation.
56. Define normalization and its need.
57. Explain E-R Model in detail with suitable example.
58. Explain about various data models.
59. What is the difference between generalization and specialization? Why do we not
display this difference in schema? [
60. Write MySQL queries for the following database:
person (driver id, name, address)
car (license, model, year)
accident (report number, date, location)
owns (driver id, license)
participated (driver id, car, report number, damage amount)
a) Add a new accident to the database; assume any values for required attributes.
b) Find the total number of peoplewho owned cars that were involved in accidents
in 1989.
c) Delete the Mazda belonging to “John Smith”
Unit 2: II Advanced Database Techniques
1. What is ObjectIds?
2. What is JSON?
a. Define the following terms:
Document
b. Collection
3. What is MongoDB? Enlist its Feature.
4. What kind of database is MongoDB?
5. What is CAP Theorem?
6. What is BASE property?
7. What is croud-sourcing?
8. Define & explain structured & unstructured data with example.
9. Difference between structured & unstructured database.
10. Define NoSQL ? State its benefits over SQL.
11. Explain NoSQL database ? ( Explain MongoDB ).
12. Compare NoSQL Vs SQL.
13. List & Explain MongoDB datatypes.
14. Explain data manipulation command ( Insert , Upadte , Delete ) for documents.
15. Explain ensure index method with example.
16. Define & explain Crowd Sourcing with example.
17. Define & explain Big Data with example.
18. List & Explain aggregate functions in MongoDB.
19. What is cursor and projection?
20. Explain differences between MySQL and MongoDB.
21. State the different between RDBMS and NoSQL.
22. What is Structured and unstructured data?
23. What is different between update() and save() method?
24. What is aggregation? Explain Count, Distinct and Group operation of aggregation with
example.
25. Give Comparison between SQL and NOSQL.
26. What is NoSQL database? Explain types of NoSQL database.
27. What is NoSQL database? State and Explain Benefits of NoSQL.
28. What is Indexing? Brief explain() and hint() operation.
29. Explain Map-reduce with Example.
30. Explain CRUD operation of MongoDB with suitable Example.
31. Explain Define MongoDB , collection , documents.
32. Explain Querying with MongoDB
33. Explain Find method / Limit method / Skip method / Sort method.
34. Explain Aggregation with MongoDB with example.
35. Explain any four / six aggregate function.
36. What is index? Explain indexing with MongoDB.
37. Explain structured verses unstructured data.
38. Explain the Concept of NOSQL database.
39. Give a Comparative study of SQL and NOSQL.
40. Explain various Databases types.
41. Explain Benefits of NOSQL.
42. Explain NOSQL Data Modeling.
43. Explain NOSQL using MongoDB
44. Write a short note on mongoDB shell.
45. Explain various data types used in Mongodb.
46. Explain with example manipulation(insert, update, delete documents).
47. Explain with example querying in Mongodb.
48. Explain with example aggregation in Mongodb.
49. Explain with example indexing in mongodb.
50. Explain with example croud-sourcing in mongodb.
51. Write a short note on mongoDB shell.
52. Explain with example map reduce function.
53. Consider orders collection that contain documents of the following prototype.
{
cust_id: "abc123",
ord_date: ISODate("2012-11-02T17:04:11.102Z"),
status: 'A',
price: 50,
items: [ { sku: "xxx", qty: 25, price: 1 },
{ sku: "yyy", qty: 25, price: 1 }
]
}
Write mongoDB queries for following
a) For each unique cust_id, sum the price field
b) Count the number of records in table for each cust_id.
c) For each unique cust_id grouping sum the price field and return only where the sum is
greater than 250.
d) For each unique cust_id with status A, sum the price field.
54. Collection “movies” which contain documents given as below.
{
name: “Movie1”,
type :”action”,
director_name:”Aditya”,
budget:10000000
ratings:[7,6,5],
producer:[
{
name:”Producer 1”,
address:”Producer1_Address”
},
{
name:”Producer 1”,
address:”Producer1_Address”
}
]
}
Write mongodb queries for following
a) find all documents directed by “Aditya” or “Karan”
b) find all documents having ratings at least 6.
c) find all documents produced by
{name:”Producer1”,address:”Procucer1_Address”.
d) Find only name and director movie having budget greater than 10000000.
Unit III Database Transactions-Transactions Management
1. Specify what is meant by Transaction. Explain transaction model using state diagram
2. Explain two phase lock protocol.
3. Explain Define MongoDB , collection , documents.
4. Explain Querying with MongoDB
5. Explain Find method / Limit method / Skip method / Sort method.
6. Explain Aggrigation with MongoDB with example.
7. Explain any four / six aggregate function.
8. What is index ? Explain indexing with MongoDB.
9. Explain deadlock and prevention policies for deadlock.
10. Explain recovery of deadlock if it occurs in system.
11. Explain properties of transaction.
12. What do you understand by serializable and non serializable schedule? How would you
test whether the given schedule S is conflict serializable schedule
13. Discuss all properties of transaction with suitable example.
14. Explain concept of view serializability with suitable example.
15. Why concurrent execution of transaction is desirable? Support your answer with suitable
example.
16. Explain how database system supports atomicity & consistency of transaction.
17. Differentiate between serial and serializable schedule.
18. Explain graph based protocol.
19. Define concurrency control . List its types / schemes.
20. Explain lock based protocol for concurrency control with example.
21. Explain View serialisability with example.
22. Explain graph based protocol for concurrency control with example.
23. Explain timestamp based protocol with example.
24. Define Deadlock , explain deadlock prevension.
25. Define & explain deadlock prevention ? Does deadlock prevention ensures freedom from
deadlock ?
26. Explain deadlock detection & recovery.
27. Define deadlock . Define deadlock detection ? explain for graph.
28. Explain deadlock recovery.
29. What is query optimization ? Explain with example ( SQL / NoSQL ).
30. What is performance tunning ? explain with example.
31. What is Query processing ? explain with example.
32. Explain in brief query optimization in NOSQL
33. Explain query optimization in SQL
34. Explain deadlock handling in detail.
35. Illustrate difference between conflict serializable schedule and view serializable schedule
by an appropriate example.
36. If deadlock happen in system how deadlock detection and recovery is done.
37. Explain need of lock conversion in two phase commit protocol.
38. Explain concept of conflict serializability with suitable example.
39. Define starvation.
40. What is transaction? What are the properties of transaction?
41. What is recovery management component? When is a transaction rolled back?
42. What are the states of transaction?
43. What is a shadow copy scheme?
44. Give the reasons for allowing concurrency.
45. What are the two types of serializability?
46. Define lock.
47. Define the phases of two phase locking protocol.
48. Define upgrade and downgrade.
49. What is a recovery scheme?
50. Define ACID property.
51. What is the use of locking?
52. What is shared lock and Exclusive lock?
53. What is meant by transaction rollback?
54. Define Query optimization.
55. Define Serializability. Explain the types of serializability.
56. Explain Deadlock with example.
57. Explain in detail about Locking Protocol.
58. Explain Performance tuning with example.
59. Explain what is query optimization
60. Explain the need for serializability.
61. Write a short note on concurrency control.
62. Explain the need of performance tuning for SQL queries.
63. Explain the Need for Concurrency Control.
64. Explain in detail about ACID properties.
65. Explain deferred database modification and immediate database modification and their
difference in context of recovery.
66. Explain in detail about two phase Locking Protocol. How does it ensure serializability?
67. Explain abstract model of transaction with state diagram.
68. Explain what is query optimization and it is done in SQL.
69. Explain what is query optimization and it is done in NOSQL Databases
70. Explain deadlock prevention and recovery scheme.
71. Explain Query processing in detail.
72. Explain various deadlock handling techniques.
73. Check whether following schedule is conflict serializability
74. Check whether given schedule is view serializable.