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.
- 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.
- 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.
- 3Define Normalization. Explain 1NF, 2NF and 3NF with a suitable example.
Group B
Short Answer QuestionsAttempt any Eight questions.
- 4Differentiate between traditional file processing system and database approach.
- 5Explain the concepts of schema, instance, and data independence.
- 6Define relational constraints. Explain domain, entity integrity, and referential integrity with examples.
- 7Explain the basic operations of relational algebra: UNION, INTERSECTION, DIFFERENCE, and CARTESIAN PRODUCT with suitable examples.
- 8Explain different types of functional dependencies with example.
- 9Explain ACID properties in database.
- 10What is concurrency control? Explain optimistic and multiversion concurrency control techniques.
- 11What is a schedule in transaction processing? Explain how concurrency control ensures serializability.
- 12Explain any one database recovery technique.