2019 (C) Comp 232
2019 (C) Comp 232
4 A failed transaction can transit to the abort state will accept the following operation
except
[ ]restart [ ]kill
[ ]rollback [ ]partiallycommitted
5 We say that I and J conflict iff
t ] They are operation by different transactions on the same data item and one of them
instruction is write operation.
t ] They are operation by same transactions on the same data item and one of them
instruction is write operation.
I ] They are operation by different transactions on the different data item and one of
them instruction is write operation.
t ] They are operation by same transactions on the same data item and one of them
instruction is read operation.
6. In_ index an index entry appears for every search-key value in the file.
[ ]sparse [ ]dense [ ]multilevel [ ]btree
7. A relation schema is in the third Normal form with respect to the set F of functional
dependencies ilfor all dependencies in F+ of the form o,) p where
scR and FcR and at
least one of the following holds except
[ ] o)F is a trival functional dependency
[ ] o is also a super key for R
[ ] Each attribute A in p-o is contained in a candidate key for R
[ ] Single candidate key must contain all the attribute in p-o
-
KATHMANDU UNIVERSITY
End Semester Examination [C]
January,2019
iAN 0 1 2oi3
Level : B.E. Course : COMP 232
Year :II Semester: II
Time : 2 hrs. 30 mins. F.M. :40
SECTION "B"
[2Q.r8:16marks]
Answer ANY TWO questions
I Describe the term data model. Represent the following scenario with a suitable data
model.
An airline company wants to keep the track of the customers and their reservations,
flights, and their status, seat assignments on the individual flights, and the schedule and
routing of the future flights. For internal reporting it should reflect the tickets sale, year
and the destination and also the employee information that does the best sale. Your model
should include a complete description.
2. With the help of the relational schema below explain how the normalization of database
tables reduces the redundancy.
Grade_report(StudNo,StudName,(Major,Adviser, (CourseNo,Ctitle,InstrucName,
InstructLocn,Grade)))
Functional dependencies
StudNo -> StudName
CourseNo -> Ctitle,InstrucName
InstrucName -> Instruclocn
StudNo,CourseNo,Maj or -> Grade
StudNo,Major -> Advisor
Advisor -> Major
J Explain the working mechanism of database system internals with the neat and clear
diagrams.
SECTION "C"
I6Q. 4:24 marksl
'
Answer ANY SIX questions
4 What is the significance of the Cartesian product operation? Explain its anomalous result
with examples.
5 What is a Null value? Explain with example how do Null values are treated by
aggregation function in SQL.
6. Explain the anomalies and its solution that arise with the concurrent access of the
database systemwith examples.
7 Define integrity problem in maintaining record in file system? Explain how DBMS
resolves this issue.
8. What are the different parameters upon which the indexing mechanism can be judged?
Explain the significance of one parameter versus another.
9 What do you mean by serial schedule? Explain the importance of serialization in the
concurrent database system.
10. With the help of the schema describe below express the query(a,b) in SQL form.
Instructor(IDrname.dept_namersalary)
Section(course-idrsection_idrsemesterryearrbuildingrroom numrtime_slot_in)
a. Give a 5 percent salary raise to the instructors whose salary is less than average
salary.
b. Find all the courses taught in the fall2012 semester but not in spring 2013 semester