Cs403 Collection of Old Papers
Cs403 Collection of Old Papers
www.vujannat.ning.com
Please read the following instructions carefully before attempting any of the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt
it to the best of your understanding.
b. If you believe that some essential piece of information is missing, make an
appropriate assumption and use it to solve the problem.
You are allowed to use MS VISIO to make diagrams. If you do so please remember to copy
and paste your code into the examination solution area.
**WARNING: Please note that Virtual University takes serious note of unfair means. Anyone found
involved in cheating will get an `F` grade in this course.
Do as appropriate:
a) A relation that has no partial functional dependencies is in ___________ normal form.
b) A transaction must acquire a ________ before doing any operation.
c) A ________ is a simple identifier that serves to identify each transaction.
d) The primary goal of physical database design is data processing security.(T/F)
e) The last step in the design process is the ______________, which maps the local
conceptual schemas to physical storage devices available at the corresponding sites.
f) Join and subquery techniques may often be used to accomplish the same task.(T/F)
g) The special value of the attribute is generally referred to as the ___________
h) A join is a relational operation that causes two common attributes to be combined into a
single composite attribute.(T/F)
i) The hierarchical data model is the most commonly used model in contemporary database
applications.(T/F)
j) A ___________ key is an attribute in one table that acts as a primary key in another table.
a. On what attributes should indexes be defined to speed up the above query? Give
the reasons for each attribute selected.
b. Write SQL command to create indexes for each attribute you identified in (a).
c) When a student has not chosen a major at a university, the university often enters a value
of "Undecided" a default value or a way to represent the null value?
o 1NF
o 2NF
o 3NF
o none of above
Question No. 2 Marks : 15
a) De-normalization
b) Raid and which level of RAID is best?
c) 2PL ensures serializability but generates deadlock, how?
To keep duplicate values from being returned use the _________ keyword
o Distinct
o All
o Unique
o None Of Above
De-normalization can increase the chance of errors and inconsistencies and can
force reprogramming if business rules change.
o True
o False
In two phase locking, when a transaction releases a lock, it may acquire additional lock.
True
False
c) Check the following relation is in 2nd normal form. If no, then convert it in 2nd
normal form and explain its reason.
ORDER_ITEM (orderId, itemId, itemDescription, qty, pricePerItem, totalPrice)
StudentID/LoginID: ______________________________
Select the activity that is most clearly part of the Database Administrator's
responsibility.
► Performance tuning
► Data modification
► Data deletion
► Data entry
► unnormalised to 1NF
► 1NF to 2NF
► 2NF to 3NF
► 3NF to BCNF
► incorrect data
► corrupt media
► insecure data
► data validation
Question No: 10 ( Marks: 2 ) - Please choose one
► 3
► 5
► 2
► 4
Transactions are often referred to in terms of ACID. Which one of the following is
not part of the term ACID?
► Atomic
► Isolation
► Durable
► Complete
► Horizontal
► Vertical
► Parallel
You are allowed to use MS VISIO to make diagrams. If you do so please remember to
copy and paste your code into the examination solution area.
a) Functions of DBA
b) specialization & Generalization
c) Entity and Entity Instance
SQL commands can be classified into three types. Which is NOT an SQL command type?
o DDL
o DML
o DGL
o DCL
o Row
o Field
o Record
o Table
o Program-data dependence
o Reduced data redundancy
o Limited data sharing
o Lengthy development time
Draw the E-R diagram for the above, providing the degree and cardinalities.
www.vujannat.ning.com
You are allowed to use MS VISIO to make diagrams. If you do so please remember to
copy and paste your code into the examination solution area.
a) Functions of DBA
b) specialization & Generalization c)
Entity and Entity Instance
SQL commands can be classified into three types. Which is NOT an SQL command type?
o DDL
o DML
o DGL
o DCL
o Row
o Field
o Record
o Table
o Program-data dependence
o Reduced data redundancy
o Limited data sharing
o Lengthy development time
Draw the E-R diagram for the above, providing the degree and cardinalities.