Tribhuvan University
Institute of Science and Technology
2082 B.S.
Candidates are required to give their answers in their own words as far as practicable.
Group A
Long Answer QuestionsAttempt any Two questions.
- Question 1Consider an online Bookstore, from which customers can buy books. Each customer can place multiple orders. Each order has one or more books. The Bookstore needs to store information about each customer, their orders, and the books available in the store. a) Draw an ER diagram for the online Bookstore system including appropriate attributes, keys, and relationships. b) Convert the ER diagram into a relational schema. Show all the primary keys and foreign keys.
- Question 2Consider the following relational schema: \(\text{Student}(\underline{SID}, SName, Dept, Year)\) \(\text{Course}(\underline{CID}, CName, Credit)\) \(\text{Enroll}(\underline{SID, CID}, Grade)\) Specify the following queries in both SQL and Relational Algebra on this database schema: a) List names of students from the "CSIT" department whose name starts from A. b) Display student names and course names they have enrolled in. c) Count total students enrolled in each course. d) Update grade 'B' to 'A' for all students in "DBMS". e) Delete records of students whose Year is 2024.
- Question 3Define Normalization. Explain 1NF, 2NF and 3NF with a suitable example.
Group B
Short Answer QuestionsAttempt any Eight questions.
- Question 4Differentiate between traditional file processing system and database approach.
- Question 5Explain the concepts of schema, instance, and data independence.
- Question 6Define relational constraints. Explain domain, entity integrity, and referential integrity with examples.
- Question 7Explain the basic operations of relational algebra: UNION, INTERSECTION, DIFFERENCE, and CARTESIAN PRODUCT with suitable examples.
- Question 8Explain different types of functional dependencies with example.
- Question 9Explain ACID properties in database.
- Question 10What is concurrency control? Explain optimistic and multiversion concurrency control techniques.
- Question 11What is a schedule in transaction processing? Explain how concurrency control ensures serializability.
- Question 12Explain any one database recovery technique.