2017 Comp 232
2017 Comp 232
KATHMANDU UNIVERSITY
End Semester Examination
August/September, 20 I 7
^ 1t{
Level : B. E./8. Sc 1 Course : COMP 232
Year : II \\L Semester : II
Exam RollNo. : Time: 30 mins. F.M. :10
Date
Registration No.:
SECTION "A''
:
[20 Q. x 0.5 l0 marks]
a 2 Which is NOT one of the most common types of SQL CHECK constraints?
[ ] System date
[ ] Range checks
[ ] Lists of values
[ ] Comparing one column value to another within the sante table
7 Which of the following operation is used if we are interested in only certain columns of a
table?
t lPRoJECrloN [ ]SELECTION [ ]UNION [ ]JOIN
[ ] two levels t
I four levels [ ] three levels [ ] one level
10. The natural join is equal to :
[ ] Cartesian Product product
i lCombination of Union and Cartesian
ComUination of selection and Cartesian product
i ]jComUination
I of projection and Cartesian product
management System-
l9 We can define Conceptual design in database
[ ] as a documentation technique' frequencies
^
to determine the size of the database.
t r needs autu rotu*""'uiJil;sing
of the DBMS'
i ] i;;;l";s modeling independent
I i it designing the relational model'
20. ToupdateanSQLview,theDBMSmustbeabletoassociatethecolumn(s)tobeupdated
'i
with:
table'
i a oarticular column in a particular underlying
i ia particular column in a particular.row'
underlying table'
i i " i"tti"ular row in a particular column
t t " iuttitular row in a particular
KATHMANDU UNIVERSITY
End Semester Examination
August/September, 20 I 7 1s
Level : B. E./B. Sc. \ Course : COMP 232
Year : II N\\ Semester : ll
Time : 2 hrs. 30 mins. F. M. :40
SECTION "8"
[2Q 8= l6 marks]
"
Answer ANY TWO questions.
t. Explain with example what do you mean by repetition of information and inability to
represent information. Discuss two different situations when using traditional record
keeping system will be more efficient than using Database management system.
2 Normalize the following relation up to BCNF form, given the functional dependencies.
video(!!!!g,d irector,se rial)
title->di rector,serial
serial->title
serial->director
name,addr ->memberno
memberno -> nameraddr
serial, date ->memberno
a
J Explain the Three Tier Database Architecture with diagram. Discuss the
major design
issues raised due to the ternary relationship in DBMS.
SECTION "C''
[6Q * 4:24 marks]
Attempt ANY SIX questions.
-
7 wh.at is the significance of the cartesian product
operation? Explain its anomalous result
with examples.
IO with the help of the schema describe below express the query(a
,b) in either relational
algebraic form or in SeL.
lnstructor(ID,na me.dept_na me,sala
ry)
Section (cou rse_id,section_id,sem estei,yea r)
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 fall2}l}semester but not
in spring 2013 semester.
C