Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 4 · TU Board 2080
Course Title: Database Management System (CSC265)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group A
Attempt any two questions.(2 × 10 = 20)
- 1.10
Consider a banking database with three tables and primary keys underlined as given below:
Customer(CustomerID, CustomerName, Address, Phone, Email)
Owns(CustomerID, AccountNumber)
Account(AccountNumber, AccountType, Balance)
Write both relational algebra and SQL queries:
a) To display name of all customers who live in "Kathmandu".
b) To count total number of customers.
c) To find name of those customers who have balance greater than or equal to 100000.
d) To find average balance of each account type.
Answer comingAlso asked in 2080
- 2.10
Define normalization. Why normalization is important in database design? Explain 1NF, 2NF and 3NF with suitable example.
Answer comingAlso asked in 2082, 2079, Model question
- 3.10
What is two-phase locking? What are different types of locks in two-phase locking? Explain basic, conservative, strict, rigorous two-phase locking. What is lock conversion?
Group B
Attempt any eight questions.(8 × 5 = 40)
- 4.5
What is flat-file system? What are the advantages of using DBMS approach?
- 5.5
Define data abstraction, data model, schemas, instances and database state.
- 6.5
What is conceptual data model? Explain different types of attributes used in ER diagram.
- 7.5
What is relational model? Define the terms domain, attribute, tuple and relation.
- 8.5
What is tuple relational calculus? Explain.
- 9.5
Define transaction. What are different desirable properties of transaction.
Answer comingAlso asked in 2081, Model question
- 10.5
Why do we need concurrency control in databses? Explain.
- 11.5
Why database recovery is essential? Explain recovery technique based on immediate update.
Answer comingAlso asked in 2080
- 12.5
Write short notes on:
a) Natural join
b) Shadow paging
— The End —