Database Management System – Fall, 2016
This is the question set along with answers Database Management System Spring 2016, which was taken by the Pokhara University.
Pokhara University – Database Management System, Spring 2016
|Level: Bachelor||Semester –Spring||Year: 2016|
|Program: BCIS||Full Marks: 100|
|Course: Database Management System||Pass Marks: 45|
Very Short Answer Questions
Attempt all the questions.
1. Describe any two tables that might be used to store information in a social networking system such as Facebook.
2. What are the four main functions of a database administrator?
3. Define the terms: primary keys, candidate key, and super key.
4. Draw a relation showing the basic data structure model in it.
5. Write the function of ‘GRANT’ and ‘REVOKE’ in MySQL.
6. What is a Materialized View?
7. Enlist Basic data types used in DBMS.
8. Enlist the type of functional dependency.
9. How Lock-Based protocol works?
10. What are the various types of transaction failures?
Descriptive Answer Questions
Attempt any six questions 6×10
11. Illustrate mapping cardinality with suitable examples of each.
12. A database of a Library System consists of three minimum relations(a) Member, (b) book, and (c) issue. Draw a database schema along with the primary key, foreign key dependencies, relation name, and minimum of four attributes in each relation.
13. Consider the following relations:
Course (CID, title, dept_name, credits)
Student (SID, name, dept_name,tot_credits)
Teacher (TID, name, dept_name, salary)
Write SQL statements to:
a. Create relation student.
b. Find the titles of courses in the ‘Computer Science’ department that have 3 credits.
c. Find the highest salary of any Teacher.
d. Find all the teachers earning the highest salary (hint: there may be more than one with the same salary)
e. If you need to create a relation Teaching, what will be the attributes?
14. Illustrate the terms UNION, INTERSECT, DIFFERENCE, EXCEPT, and COMMIT with an example of each.
15. Check for redundancy of Functional Dependency in R (W X Y Z) with X →W, WZ →XY, Y →WXZ. If exists convert it into canonical form.
16. What is ACID property? Explain serializability in Transaction.
17. How do you prevent deadlock? In data recovery, explain log-based recovery and checkpoint
Attempt all questions
Read the case situation given below and answer the questions that follow.
Moon Set Colony has 5 blocks of Towers (buildings). Each block has 15 floors of apartments. Each apartment has one guest room, one living room, one dining room, and two bedrooms. In the basement, every family gets a parking slot for one car and one motorcycle. A separate parking system is made for guests/visitors. The management wants to install DBMS on the gate with the features:
• Any visitor is asked to tell the name of the resident of the colony s/he wants to meet and it is verified in the database before entry.
• Visitor’s detailed information is recorded.
• If the visitor is in the vehicle, its information also be recorded.
• Database also provides family details, location, the vehicular status of the people who reside in this colony.
i) Draw an E-R diagram of the system.
ii) Enlist the max number of tables you require in the system.
iii) Show all possible and relevant attributes of at least two tables.
iv) Offer some Views (logical) of the system.
If you liked Database Management System || Spring 2016, then you May Also Like Data Analysis and Modeling || Spring, 2016 || Pokhara University || BBA/BBA-BI/BBA-TT/BCIS