6.9 KB · commit 40bb182
Department of Electrical & Computer Engineering
Course No: ECE 2215
Course Title: Database Systems
| Question No. | Question Description | Marks |
|---|---|---|
| Q.1 (a) | "A database is a tool for storing information efficiently"- Justify this statement. | 03 |
| Q.1 (b) | Define entity set. Explain the following with suitable example: (i) strong entity set and (ii) weak entity set. | 04 |
| Q.1 (c) | What is E-R model? Draw an E-R diagram that includes teacher, student and course entities with following constraints: (i) Each teacher must take at least one course; (ii) A student can register one or more courses; (iii) A course may have teacher or not. | 05 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.2 (a) | Explain the distinctions among the terms primary key, candidate key, and super key with proper example. | 04 |
| Q.2 (b) | Define the concept of aggregation. Give two examples of where this concept is useful. | 03 |
| Q.2 (c) | Consider a database used to record the marks that students get in different examinations of different course offerings. (i) Construct an E-R diagram that models examinations as entities, and uses a ternary relationship for the above database; (ii) Draw a relational data model for the above corresponding E-R diagram. | 05 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.3 (a) | Consider the following insurance database, where primary keys are underlined.person (<u>driver_id</u>, name, address)car (<u>license</u>, model, year)accident (<u>report_number</u>, date, location)owns (<u>driver_id</u>, license)participated (<u>driver_id</u>, car, <u>report_number</u>, damage_amount)Write down the relational algebra statement for the following queries: (i) Find the total number of people who owned cars that were involved in accidents in 1989. (ii) Find the number of accidents in which the cars belonging to "John Smith" were involved. (iii) Update the damage amounts for the car with license number "AABB2019" in the accident with report_number "AR201930" to $3000. | 06 |
| Q.3 (b) | Differentiate between domain and data type. | 02 |
| Q.3 (c) | What is mapping cardinality? How a many to many relationship can be converted into table. Explain with example. | 04 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.4 (a) | What problem may occur if databases are used without normalization? Discuss with proper example. | 04 |
| Q.4 (b) | Describe the ACID-properties of database system with appropriate diagram. | 04 |
| Q.4 (c) | Explain the rules of 1NF and 2NF with a proper example. | 04 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.5 (a) | If concurrency-control management is not implemented properly what problem may occur? Explain with example. | 04 |
| Q.5 (b) | What do you know about deadlock in transaction management? Under what conditions it is less expensive to avoid deadlock than to allow deadlocks to occur and then to detect them? | 04 |
| Q.5 (c) | Discuss each type of failure that can happen in DBMS. How does RAID model help to recover a system? | 04 |
(Note: In the physical question paper, the SECTION-B heading, Q.5, and Q.6(a)–(b) with the opening line of Q.6(c) appear at the bottom of Page 1; the schedule table of Q.6(c) and Q.7–Q.8 appear on Page 2)
| Question No. | Question Description | Marks | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.6 (a) | Define transaction and schedule. What is the difference between serial schedule and serializable schedule? | 04 | ||||||||||||||||||||||||||
| Q.6 (b) | When a transaction is rolled back under timestamp ordering and it is assigned a new timestamp? Why can it not simply keep its old timestamp? | 04 | ||||||||||||||||||||||||||
| Q.6 (c) | Consider the following schedule.
Determine whether the schedule is conflict serializable or not? | 04 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.7 (a) | Write down the SQL queries for following operations. (i) Create table for student (roll, Name, Dept) (ii) Insert one example entry for student table (iii) Modify the student table to student(roll, Name, dept, session) (iv) Show the roll and name of the students of ECE department only. | 04 |
| Q.7 (b) | Consider the following data tables:Product (p_id, p_name, quantity, unit_price)Customer (c_id, c_name, contact)Sales (c_id, p_id, quantity)Write down SQL expressions for following queries. (i) Show the information of those customers who have bought more than five different products. (ii) Show the information of those products that were sold more than ten pieces. (iii) Show the information of the product with maximum sale (maximum sold amount of money or bought by the maximum customer). (iv) Show the product id and corresponding remaining quantity of that product. | 08 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.8 (a) | What is triggering? What are the purposes of using trigger? Write the syntax for creating trigger? | 05 |
| Q.8 (b) | Suppose that there is a database system that never failed, is a recovery manager required for this system? Justify your answer. | 04 |
| Q.8 (c) | Describe the different RAID levels. | 03 |