Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 4 · TU Board 2080 (new course)
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 question.(2 × 10 = 20)
- 1.10
Consider a banking database with three labels and primary key underlined as given below:
Customer (CustomerID , CustomerName, Address, Phone, Email)
Borrows (CustomerID, LoanNumber )
Loan ( LoanNumber , LoanType, Amount )
Write both relational algebra and SQL queries:
- To display name of all customers who live in "Lalitpur" in ascending order of name.
- To count total number of customers having loan at the bank.
- To find name of those customers who have loan amount greater than or equal to 500000.
- To find average loan amount of each accoun't type.
Answer comingAlso asked in 2080
- 2.10
What are informal design guidelines for relational schemas? why do we need functional dependencies? Explain 2NF, 3NF with suitable example.
Answer comingAlso asked in 2081
- 3.10
Explain deadlock with example. What are different deadlock prevention protocols? Explain deadlock detection and starvation.
Group B
Attempt any EIGHT question.(8 × 5 = 40)
- 4.5
What are the characteristics of database approach? Explain.
- 5.5
Define data independence. Explain three-schema architecture.
- 6.5
What is specialization? What are different constraints on specialization?
Answer comingAlso asked in 2081
- 7.5
What is relational database? Explain different characteristic of a relation. Defain domain constraint.
- 8.5
What is tuple realtion calculus ? Given the following schema, write tuple relational calculus for selecting name and address of employee who are working in a company having Cid=E01
Employee(Eid, Ename, Address, Cid)
Company(Cid, CName)
- 9.5
Explain schedule based on recoverability and serializability.
- 10.5
How timestamp ordering protocol is used for ensuring concurrency control?
- 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:
- Transaction processing
- Weak entity
— The End —