18CSC303J DBMS Sample MCQ
18CSC303J DBMS Sample MCQ
PART-A
5. The possibility of functional dependency can exists between or among the following:
a) tuple
b) rows
c) none
d) attributes
Answer : d
7. Which of the following types has a reference that contains data about a single entity:
a) 2nd Normal Form
b) 3rd Normal Form
c) 4th Normal Form
d) 5th Normal Form
Answer : c
10. Which provides a comprehensive list of all activities that have changed the data base
contents for a certain time span?
a) Transaction property
b) Transaction manager
c) Transaction Log
d) Transaction control
Answer : c
1. Given the set of tables related to the employee working in the location.
Employee Job
Eid Name Eage Ejobid Ecity Jobid Jobname
E100 Joseph 31 1 3 1 Clerk
E101 Victoria 20 3 4 2 Accountant
E102 Samuel 25 2 5 3 Pharmacist
E103 John 27 1 3 4 Mechanic
Location
Locid Locname
1 Chennai
2 Madurai
3 Coimbatore
4 Puducherry
5 Kodaikanal
[A] πName(ρEage>25(Employee))
[B] ρName(πEage>25(Employee))
[C] πEid>2∨Eage!=31(Employee)
[D] πName(ρLocname= “Coimbatore” (Employee ⋈ Location))
ANSWER : [A] & [D]
2. Choose those records that will be produced by the natural join on both Sample 1 and
Sample 2 schema, in which the attribute 3 is greater than attribute 1.
[A] (12,13,13,15)
[B] (16,14,14,11)
[C] (12,13,11,16)
[D] (13,15,11,16)
Answer : [A]
3. The result that is produced by the minus operator between the given schema
[A] (5)
[B] (4)
[C] (3)
[D] (6)
Answer : [D]
5. For the given functional dependency { P → QR, Q → R, PQ → S}, the minimal cover will
be
A) { P->R, Q-> R, PQ->S}
B) { P->R, Q->R, Q->S}
C) {P->Q, Q->R, P->S}
D) { P->QR, Q->R,P->S}
Answer : C
11. The RM agency provides employee to banks in Tamilnadu. Examine the table
Emid Ebrno Ebraddr Name Post hrsprwk
S4221 B001 City Center Plaza, Velachery Allan Assistant 16
A) Satisfies 3NF
B) Violates 3NF further decomposed to (Brno,telno)&(Braddr,mrstno,Name)
C) Violates 3NF further decomposed to (BrNo,Name)&(Braddr,telno,mrstno)
D) Violates 3NF further decomposed to (BrNo,Braddr,telno,mrstno)&(mrstno,Name)
Answer : D
14. Identify the correct canonical cover for the following set of functional dependencies.
FD={ U VW, VW, UV, UVW }
a) { U VW, VW, UV}
b) { UV, VW }
c) { U VW, UVW, UV, VW}
d) { U VW}
Answer : b
15. Consider the following relation schema.
Customer
Cus_No Loan_No Cus_City
944957 P145/P214 Tambaram/Egmore
877645 P810 Tnagar
Identify if any multivalued dependency exist in the above schema.
a) cus_city ->-> cus_no
b) cus_no ->-> loan_no
cus_no ->-> cus_city
c) loan_no ->-> cus_no
loan_no ->-> cus_city
d) loan_no ->-> cus_no
cus_city ->-> cus_no
Answer : b
16. Consider the relational schema student(reg_no, name, mobile_no, email_id) with the
following functional dependencies.
reg_no name, name mobile_no, mobile_noemail_id, email_idname.
All the four attributes are key attributes. Relation student is decomposed into student(reg_no,
name), student(name, mobile_no), student(name, email_id). Identify the correct statement
based on the decomposition.
a) The decomposition is lossless and is dependency preserving
b) The decomposition is lossless but is NOT dependency preserving
c) The decomposition is lossy and is dependency preserving
d) The decomposition is lossy but is NOT dependency preserving
Answer : a
17. Consider the following relational schema faculty(faculty_id, name, course) and identify
the correct statement.
19. For the given schedule of transactions T1, T2 and T3, give the correct order of
serialization .
a) T1-> T3-> T2
b) T2-> T3-> T1
c) T1-> T2-> T3
d) T2-> T1-> T3
Answer : a
a. T1
b. T2
c. S1
d. S2
Answer : c
21. Consider the given sequence of transactions on an account. Suppose if the system
crashed before writing 7th statement, what recovery procedure should be done when the
system is restarted?
a. Undo log record 6 and then redo log records 2 & 3.
b. Redo log record 6 and undo records 2 & 3
c. Undo log records 2,3 and 6
d. Redo log records 2,3 and 6
Answer : a
22. Give the equivalent serial schedule for the following scenario?
a) T1- T2- T3
b) T1- T3- T2
c) T2- T1- T3
d) T3- T1- T2
Answer : d
a) It is irrecoverable schedule
b) It is recoverable with cascading rollback
c) It is cascadeless recoverable
d) Cannot determine this property
Answer : c
24. Identify the operation that cannot be performed on the shrinking phase of two phase
locking protocol.
a) Release Share lock
b) Release Exclusive lock
c) Convert Share lock to Exclusive lock
d) Convert Exclusive lock to Share lock
Answer : c
25. Consider the following statements based on the wait-and-die technique for deadlock
prevention. Identify the correct statements.
(i) Older transactions (with smaller timestamp) may wait for younger one to
release data item
(ii) Older transaction forces rollback of younger one instead of waiting
(iii) A transaction may die several time before acquiring the data item
(iv) It is non-preemptive technique
(v) It is preemptive technique
a) (i), (iii), (v)
b) (ii), (iii), (iv)
c) (i), (iii), (iv)
d) (ii), (v)
Answer : c
If immediate database modification scheme is used, then identify the correct recovery
operation.
a) Undo T0, Undo T1
b) Redo T0, Redo T1
c) Undo T0, Redo T1
d) Redo T0, Undo T1
Answer : d
27. Which one of the following statement is true for given schedule?
a) Conflict serializable
b) View serializable
c) Both conflict and view serializable
d) Neither conflict nor view serializable
Answer : b
28. Of the given schedules with three transactions 1,2 and 3 for reading and writing data
X, indicated by r(X) and w(X) respectively, which is conflict serializable?
a) S1
b) S2
c) S3
d) S4
Answer : d
29. If crash happens now and the system tries to recover, what operations must be undone
and redone?
30. Consider the schedules S1 and S2 with transactions TR1, TR2 and TR3; and schedules S3
and S4 with transactions TR1 and TR2. Identify the correct statements
32. Consider the log record format and identify the correct statements.
<Ti, X, V1, V2>
a) V1 is old value of a data item X
b) V2 is old value of a data item X
c) V1 is new value of a data item X
d) V2 is new value of a data item X
Answer : a and d
33. Which of the following statement is correct for the given schedule
34. Consider the following transaction states and mark the unnecessary or wronmg operation.
a) T1 can be ignored
b) T2 and T3 redone
c) T4 Undone
d) T4 redone
Answer : d
35. Consider two transactions T1 and T2. Assume T1 is an uncommitted transaction. Which
of the following situation cause an irrecoverable error?
a) T2 writes the data after it is read by T1.
b) T2 reads the data after it is read by T1.
c) T2 writes the data after it is written by T1.
d) T2 reads the data after it is written by T1.
Answer : c and d