Question Bank DBMS BCS403
Question Bank DBMS BCS403
Module 1:
1.What are the main characteristics of database approach over the file processing
approach?
2. What are the responsibilities of DBA and database designers?
3. List the advantages and disadvantages of DBMS? Discuss any five advantages by
comparing with file system?
4. Define the terms
a. Data
b. Database
c. Metadata
d. Data Model
e. Canned transactions
f. Database designers
5. Discuss the main characteristics of database approach. How does it differ from the
traditional file system?
6. What is meant by “persistent storage for program objects” explain.
7. Explain the advantages of DBMS.
8. List the different types of end users.
9. Explain different categories of data models? (06 marks)
10. Explain the three-schema architecture? (06 marks)
11. What is data independence? Bring out different types of independence. (06 marks)
12. List the differences between logical and physical data independence (05 marks)
13. Define the following and explain with an example each. (05 marks)
a. Snapshot b) Intension c) Extension d) Schema construct
14. Define schema and instance. (04 marks)
15. What are the problems associated with three schema architecture. (02 marks)
16. Why would you choose a database system over flat files. When would make
Sense not to use database system.
17. Explain the typical components module of a DBMS with neat diagram. (10 marks)
18. With neat diagram explain the operation of two-tier client/server architecture for the
RDBMS? (08 marks)
19. What are the data base utilities list few functions that utilities perform. (08 marks)
20. Discuss the criteria used to classify DBMS. (06 marks)
21. Define the terms: DDL, DML and DCL with examples. (06 marks)
22. Define and explain the importance of database catalog and explain the internal storage
format of a catalog with example. (06 marks)
23. Discuss different types of user friendly interfaces and the types of users who typically use
each?
24. What is an attribute? Explain the different types of attributes that occur in ER-Model with
Examples. Write their corresponding notations? (14 marks)
25. Discuss the conventions for displaying the ER schema as an ER diagram. (04 marks)
26. List out the notations for ER-diagram and their meaning. (10 marks)
27. With a neat diagram explain the phases of database design. (08 marks)
28. What are the structural constraints on a relationship type? Explain with
Examples? (05 marks)
29. What is a weak entity type? Explain the role of partial key in design of
weak entity type? (05 marks)
30. Define/Explain the following terms with examples:
Recursive relationship.
Weak entity type.
Atomic attributes.
Participation constraint.
Cardinality ratio.
Ternary relationship.
Entity.
Strong entity.
Composite attribute.
One to many relationship.
Weak entity set. (2x11 marks)
31. Define and explain partial key with example. (04 marks)
32. What is meant by recursive relationship? Explain the importance of
role Names in recursive relationship with example. (08 marks)
33. What is the concept of weak entity type used in data modeling? Define owner entity type
and identifying relationship type. (06 marks)
34. Describe how to map the following in ER-model to schema
i) Strong entity
ii)One to one relationship (10marks)
35. What is cardinality ratio and its types? (04marks)
36. Draw and ER Diagram for company database.
37. Draw an ER Diagram for Bank database.
38. Draw an ER Diagram for University Database.
39. Draw an ER Diagram for Movies Database.
Module 2:
1. Define the following terms as they apply to the relational model of data: domain, attribute, n-
tuple.
2. List and explain characteristics of relations.
3. Define attribute. Explain with an example the types of attribute.
4. What is the difference between a key and a superkey?
5. Discuss the entity integrity and referential integrity constraints. Why each is considered
important?
6. Define foreign key. What is this concept used for?
7. Define primary key, candidate key.
8. Define the following terms as they apply to the relational model of data: relation schema,
relation state, degree of a relation, relational database schema, and relational database state
9. What are the basic operations that can change the states of relations in the database? Explain
how basic operations deal with constraint violations?
10. Explain briefly violations in entity integrity constraint, key and referential integrity
constraints with example.
11. What is a transaction? How does it differ from an Update operation?
12. List and explain with an example the various basic relational algebra operations
13. Discuss various types of set theory operations with example.
14. Explain all types of outer join operations in relational algebra. Demonstrate the advantage of
outer join operation over the inner join operation.
15. Explain recursive closure operations with example.
16. Explain aggregate functions and grouping with example.
17. Considering the following schema
Sailors(sid, sname, rating, age)
Boats(bid, bname, color)
Reserves(sid, bid, day)
Write a relational algebra queries for the following:
i)Find the names of sailors who have reserved boat#103
ii) Find the names of sailors who have reserved a red boat
iii)Find the names of sailors who have reserved a red or green boat
iv) Find the names of sailors who have reserved all boats
18. Describe the steps of an algorithm for ER- to -relational mapping with suitable example.
Module 3:
1. What is the need of normalization?
2. What is normalization?
3. What are Informal Design Guidelines for Relation Schemas.
4. What are the advantages of normalization?
5. What are normalization rules?
6. Explain insertion, deletion and modification anomalies. Why are they considered bad?
Illustrate with example.
7. What is functional dependency?
8. Explain the types of functional dependency?
9. Explain 1NF,2NF and 3NF with example?
10. Given a relation R( A, B, C, D) and Functional Dependency set FD = { AB → CD, B → C
}, determine whether the given R is in 2NF? If not convert it into 2 NF.
11. How to go from 1nf to 2nf to 3nf?
12. What is the difference between 2nf and 3nf?
13. What is the difference between 4nf and multivalued dependency?
14.What is multivalued dependency and how it can be removed?
15.What is BCNF in the dbms and why we use it ?
16.What is trivial and non-trivial multivalued dependency?
17. How to convert table in to BCNF?
18. What are key features of Join Dependencies ?
19. What is Join dependency ?
20. What is Fifth Normal Form?
21. Which normal form deals with join dependency?
22. Why do we use join dependency in 5nf?
23. What are key features of Join Dependencies ?
24. What is Join dependency ?
25. What is Fifth Normal Form?
26. Which normal form deals with join dependency?
27. Why do we use join dependency in 5nf?
28. What is schema change statement?
29. What are the basic Retrieval Queries in SQL?
30. What are the various Attribute Data Types and Domains in SQL?
31. What is Pattern Matching in SQL ?
32. Explain different constraints in SQL?
33. Explain Key and Referential Integrity Constraints with example?
34. Explain advantages of SQL?
35.Differentiate between HAVING and WHERE clause in SQL?
36.Explain check and foreign key in SQL?
37.Explain substring comparision in sql?
Module 4:
1.
2. Consider the following schema and write the relational algebra expressions for the queries given below:
SAILORS(Sid, Sname, rating, age)
BOATS(bid, bname, color)
RESERVES(sid, bid,day)
(i) Find names of sailors who reserved green boat
(ii) Find the colors of boats reserved by “Ramesh”
(iii) Find names of sailors who have reserved a red or a green boat.
(iv) Find the “sids” of sailors with age over 20 who have not registered a red boat. 22.
3. Consider the following relations for a database that keeps track of business trips of sales persons in a sales
office:
Salesperson (Salespersonid, Name, Start-year, Dept-no)
Trip (Salespersonid, from, to, Departure-date, Return-date, trip-id)
Expense (trp-id, AccountNo, Amount)
Specify the foreign keys for the above schema. Then specify the following queries in relational
algebra.
Give the details (all attributes of trip relation) for trip that exceeded 10,000/- in expenses.
Print the ‘Salespersonid’ and ‘Name’ of the salespersons who took trips to ‘delhi’.
Print the total trip expenses incurred by the salesman with Salespersonid = ‘504’.