B.Sc. - H - Computer Science Paper
B.Sc. - H - Computer Science Paper
blocking factor. Assume that file records are of Your Roll N o...............
fixed size with record length R = 100 bytes,
Sr, No. of Question Paper 4803 E
ordering key field is 9 bytes long and block pointer
is 6 bytes long. (6) Unique Paper Code 32341403
(b) What are the four desirable properties of a Name of the Paper Datab ase Management Systems
Transaction that should be enforced by the Name of the Course B.Sc. (H) Computer Science
concurrency control? (4)
Semester IV
Duration : 3 Hours Maximum Marks : 75
2. Section A is compulsory.
3. Attempt any four questions from Section B.
4. Parts of a question must be answered together.
Section A
(b) In the reiation R (A, B, C, D, E) given below: 6 (a) Create a B-tree of or'der 4 inserting following
values in the given order (in steps)
B C D E
a2 b2 80 d2 3
(b) Consider the following relations for the EMP-
a3 bl 50 d3 4
PROJ database with the following relations :
(d) Explain the usage of the following ciauses in the (i) Display the project details of projects
*ON
SQL Query'ON UPDATE CASCADE" and managed by "James".
DELETE NULL". Q)
(ii) Count the number of employees working
(e) Find out the closure of CD in the following relation
on the "Artificial Intelligence" Project.
R (A, B, C, D, E, F, G) for the given set of
(4)
functional dependencies
F = {A -> BC, E -> C, CD -> AEG, ABG -> BD, 7 (a) Compute the number of blocks of access required
DG -> BC) to get records from an ordered file with r = 20,000
Show the stepsto compute the closure for CD. records stored on a disk with Block size B: 1024
Using the closure, can we say that CD is a bytes with or without primary index. Also, calculate
candidate key, if yes, Justify. (3)
P.T.O
4 803 '10 4 803 3
Project (Projecl#, Project-Name, Project_Manager) (f) Consider the following Medical Database relations
to keep track of Patients and Physicians:
Solve the following Queries on the above-
mentioned database using SQL : Patient (PP#, PName)
(ii) Get details of employees working on all Identify the primary and foreign keys for the
"database" project.
relations given above (State any assumptions
(iii) Get Emp# of employees who work on all made). (3)
a1 b1 d2
(ii) Logical data independence and Physical
a2 b2 c2 d2 data independence
c4 d4 (4)
(iii) Database lntension and Database Extension
P.T.O.
4803 4 4803 9
(i) Find the'output of the following expressions in (b) Find the minimal covei of Functional dependency
relational algebra on the tables A, Bl, 82, 83 as set F : {B -+ A, D'-r A, AB -+ D}. (4)
given below: (l+2)
4 (a) Map the following ER-diagram into a Relational
database (Assume appropriate cardinality ratios
AI
S.No. P.No. 82
for each of the given relationships), Here CCI
SI PI denotes a ternary relationship between candidate,
P.No.
SI P2
P2
company and interview. (6)
SI P3
sl P4
S2 PI
S2 P2 ,Nesr
S3 P2
S4 P2 CANOIOATE ccr COMPANY
S4 P4
Date
tll t]3
P.No, I'.Nr-r.
P2 PI INTERVIEW RESULTS.IN ]OB OFFER
P4 lr2
P4
f) Consider the Relation given below 5 Given the following relations for an EMP-PROJ
database:
STUDENT COURSE
(a) Employee (Emp#, Name, Age, Salary, City, Mobile)
Namc Course Grade Ph no Major Department
Allotted (Project#, Emp#)
P.T,O
4803 8 4803 5
3 Consider the relation R, which has attributes to store Does this given relation STUDENT_COURSE
timetable of courses and suffer from any of the following anomalies? Justify
your answers using appropriate example.
(a) sections at a university; (6)
(i) Insertion
R = {Course_no, Sec_no, Offering_dept, Credit-hours,
Course_level, Instructor_ssn, Semester, Year,
(ii) Deletion
Suppose that the following functional dependencies (k) Two transactions Tl and T2 are executing
hold on R : concurrently (assuming concurrency control is not
in place) with initial value of X=15 and Y:5.
{Course_no} -+ {Offering_dept, Credit_hours,
Course_level ) TI T2
P.T.O
4803 6 4803 7
. Students are uniquely identified by e-mail id. first (b) For the given binary relationship, suggest the
and last names are also recorded. cardinality ratio of the relationship based on the
general context of entity types and state the
. Each project is assigned a unique identifier by
context clearly' (+)
the system and is described by a title, abstract,
and the name of the electronic file containing Entity Set I Entity Set2
the project report.
I. Country President
. Multiple students may be involved in the same Il. Teacher Course
project, but one of the students is desiSnated as
the coordinator. III. Players Team
P.T.O