0% found this document useful (0 votes)
59 views4 pages

Question Bank M1-2 BCS403

Uploaded by

jayadev.nishan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views4 pages

Question Bank M1-2 BCS403

Uploaded by

jayadev.nishan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Bapuji Educational Association (Regd.

)
Bapuji Institute of Engineering and Technology, Davangere-577004
Department of Computer Science and Engineering

DATABASE MANAGEMENT SYSTEM [BCS403]


Question Bank
Module 1
1.​ Explain the main characteristics of the database approach versus the file processing approach. Bringing
out the major advantages of the database approach.
2.​ Explain the three schema architecture with a neat diagram. Why do we need mappings among schema
levels? How do different schema definition languages support this architecture?
Or explain the 3-schema architecture with a neat diagram and list different DBMS Languages along
with the SQL constructs for each one.

3.​ Draw and ER diagram for the following database schema with at least five entity types. Also specify
primary key and structural constraints.
1.​ COMPANY
2.​ BANK
3.​ Airline Reservation System
4.​ Hospital Database
5.​ MAIL_ORDER database
4.​ Discuss various components of a DBMS with the neat diagram.
5.​ Define an entity and attribute. Explain the different types of attributes that occur in an ER diagram
model, with an example.
6.​ Explain the two different types of Structural Constraints on a relationship type.
7.​ Define the following with an example:
1.​ Weak Entity Type
2.​ Degree of a relationship type
3.​ Role names and recursive relationship
4.​ Data Model
5.​ Schema
6.​ Instance
7.​ Canned Transaction
8.​ Cardinality Ratio
9.​ Participation Constraints
10.​Meta data
11.​Total Participation
12.​DBMS Catalog
8.​ What are the responsibilities of the DBA and Database Designer?
9.​ Discuss the different types of user friendly interfaces and the types of users who typically use each.
10.​Explain with block diagram the different phases of database design.
Module 2
1.​ Describe the characteristics of relations with suitable examples for each. 8 ass

2.​ What are the basic operations that can change the states of relations in the database? Explain how the
basic operations deal with constraint violations.

3.​ Briefly discuss the insert operation on relational databases. Show an example of a violation of entity integrity,
key, referential integrity in each of the insert operations.
4.​ Describe the steps of an algorithm for ER – to - relational mapping.

5.​ Explain the terms super key, primary key, foreign key.
6.​ Briefly discuss the different types of update operations on relational databases. show an example of a violation of
entity integrity, key, referential integrity in each of the update operations.

Additional Questions
Answer the following Questions. ​ ​ ​ ​ ​ ​ Date:
1.​ Consider the following relations for a database that keeps track of students enrollment in courses and
books adopted for each course:
STUDENT (SSn, Name, Major, bdate) COURSE (courseno,
cname, dept) ENROLL (SSn, Courseno, Quarter, grade)
BOOK_ADOPTION (Courseno, Quarter, book_isbn) TEXT
(book_isbn, book_title, Publisher, Author)
Write the following queries in relational algebra on the database schema:
1.​ List the number of courses taken by all students named John Smith in Winter 2009 (i.e Quarter =
WO9)
2.​ Produce a list of textbooks (include courseno, book_ISBN, book_title) for courses offered by the CS
department that have used more than two books
3.​ List any department that has all its adopted book books published by Pearson publishing.
2.​ Consider the following MOVIE database:
​ MOVIE (Title, Director, Myear, Rating)
​ ACTORS (Actor, Aage)
ACTS (Actor, title) DIRECTORS (Director, dage)
Write the following queries in relational algebra on the database given:
1.​ Find all movies made by Hanson after 1997
2.​ Find all actors and directors
3.​ Find “Coen’s” movie with “Mc Dormand”
4.​ Find (director, actor) pairs where the director is younger than the actor.
3.​ Outline the steps to convert the basic ER Model to relational Database schema with an example.
Or
Enumerate the steps involved in converting the ER constraints to corresponding relational tables with
an example.

4.​ Discuss the various types of set theory operations with example.
5.​ Given relational schema:
Passenger (PID, pname, pgender, pcity)
Agency (aid, aname, acity)
Flight (fid, fdate, time, src, dest)
Booking (PID, aid, fid, fdate)
Construct relational algebra expression for the following:
I.​ Get the complete details of all flights to new Delhi
II.​ Find only the flight numbers for passenger with pid 123 for flights to Chennai before 06/11/2020
III.​ Find the passenger names for those who do not have any booking in any flights
IV.​ Get the details of flights that are scheduled on both dates 01/12/2020 and 02/12/2020 at 16:00 hours
V.​ Find the details of all male passengers who are associated with jet agency.
6.​ Consider the two tables, show the results of the following:
T1
A B C
10 a 5
15 b 8
25 a 6

T2
P Q R
10 b 6
25 c 3
10 b 5

1. T1 ⨝ T1.P=T2.A T2
2. T1 ⨝ T1.Q=T2.B T2
3. T1 ⟕ T1.P=T2.A T2
4. T1 ⟖ T1.Q=T2.B T2
5. T1 ⨝ (T1.P=T2.A and T1.R=T2.C) T2

7.​ Explain Unary relational operations with an example.

8.​ Considering the schema:


SAILORS (sid, sname, rating, age)
BOATS (bid, bname, color)
RESERVES (sid, bid, day)
Write relational algebraic queries for the following:
1.​ Find names of sailors who have reserved boat #103
2.​ Find names of sailors who have reserved a red boat
3.​ Find names of sailors who have reserved a red or green boat
4.​ Find names of sailors who have reserved all boats

9. Explain with Single – tier and client – server architecture, with a neat diagram.

You might also like