0% found this document useful (0 votes)
98 views

18CSC303J DBMS Sample MCQ

This document contains a sample MCQ questions related to DBMS concepts. It includes 24 multiple choice questions across two parts - Part A contains 12 questions on relational algebra, normalization, transaction management and other DBMS concepts. Part B contains 12 additional questions testing knowledge of relational algebra, normalization up to BCNF, transaction scheduling and recovery. The questions cover fundamental and advanced DBMS topics to assess knowledge.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

18CSC303J DBMS Sample MCQ

This document contains a sample MCQ questions related to DBMS concepts. It includes 24 multiple choice questions across two parts - Part A contains 12 questions on relational algebra, normalization, transaction management and other DBMS concepts. Part B contains 12 additional questions testing knowledge of relational algebra, normalization up to BCNF, transaction scheduling and recovery. The questions cover fundamental and advanced DBMS topics to assess knowledge.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

18CSC303J – DBMS SAMPLE MCQ QUESTIONS

PART-A

1. ____ is a basic operation in relational algebra?


a) set difference
b) addition
c) deletion
d) none from above
Answer : d

2. In relational algebra, which operation is not a true unary operation?


a) max
b) min
c) upper
d) lower
Answer : b

3. Which of the following isn't a join variant?


a) Right
b) Upper
c) Left
d) all are versions of JOIN
Answer : d

4. 4NF is made to deal with a situation like.


a) Partial dependency
b) Data redundancy
c) Multivalued dependency
d) None of the mentioned
Answer : c

5. The possibility of functional dependency can exists between or among the following:
a) tuple
b) rows
c) none
d) attributes
Answer : d

6. What is the solution for multi valued dependency problem?


a) Divide the relations into two, each with its own theme.
b) Insertion
c) Deletion
d) Modification
Answer : a

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

8. What does I stand for in ACID properties of database transactions?


a) Integrity
b) Isolation
c) Idempotent
d) Identity
Answer : b

9. ________rules used to restrict the amount of log information required in case of


device failure and volatile information loss.
a) Save pointing
b) Check pointing
c) Recovery
d) Deadlock
Answer : b

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

11. What does D stands for in ACID properties of database transactions?


a) Duplication
b) Document
c) Durability
d) Deadlock
Answer : c

12. Which of the following deadlock prevention strategy is preemptive?


a) Wait-die
b) Wound-wait
c) Timed out
d) Wound-die
Answer : b
PART-B

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

Choose the appropriate expression that produces the given result


Name
Joseph
John

[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]

4. For the given functional dependency {P → Q, PQ → T, QV → T, RS → X, T → R}, the


closures of (PT)+ and (PST)+ are__________, ____________
A) PQST, PQRSTX
B) PQRT, PQRSTX
C) PQRT, PQRST
D) PQST, PQRSX
Answer : B

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

S4221 B003 1-4th Avenue,Velachery Allan Assistant 9

S4321 B001 City Center Plaza, Velachery Daniel Assistant 14


S4321 B003 1-4th Avenue,Velachery Daniel Assistant 10

A) Satisfies 2NF and 3NF


B) Violates 2NF and 3NF further decomposed into (Ebrno,Ebraddr),
(Emid,Name,Post) & (Emid,Ebrno,hrsprwk)
C) Satisfies 2NF but violates 3NF further the table is decomposed to (Emid,Ebrno,Ebraddr)
& (Name Post, hrsprwk)
D) Satisfies 2NF but violates 3NF further the table is decomposed to ( Emid,Ebraddr) &
(Ebrno, Name, Post, hrsprwk)
Answer : B

12. Examine the manager information related to the bank


Brno Braddr telno mrstno Name
B001 City Center Plaza, Velacherry 123-456-7899 S4231 Thomas
B002 Jafferanpet, Annanagar 456-123-7899 S4232 Anthony
B003 1-4 Avenue,Velachery
th
321-456-7899 S4233 Peters
B004 10 cross street Avenue,
th
213-456-7999 S4234 Sam
AnnaNagar

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

13. Consider the following functional dependencies for a relation R(J,K,L,M,N)


JK  L, LM, KM N
Which of the following set of attributes functionally determine T?
a) JLM
b) KLM
c) JK
d) LM
Answer : b and c

14. Identify the correct canonical cover for the following set of functional dependencies.
FD={ U  VW, VW, UV, UVW }
a) { U  VW, VW, UV}
b) { UV, VW }
c) { U  VW, UVW, UV, VW}
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_noemail_id, email_idname.
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.

faculty_id name Course


100680 Edwin DBMS
100680 Edwin OOAD
101262 Joel JAVA
101262 Joel JAVA
a) Faculty_id functionally determines name and name functionally determines course
b) Faculty_id functionally determines course and name does not functionally determines
course
c) Name does not functionally determines course
d) Faculty_id functionally does not determines name and name functionally determines
course
Answer : c

18. Normalize the following relation to BCNF.


CycleTest(RegNo, TestDate, TestTime, FacultyID, HallNo)
The functional dependencies of the relation are :
RegNo,TestDate  TestTime, FacultyID, HallNo
FacultyID, TestDate, TestTime  RegNo, HallNo
FacultyID, TestDate  HallNo
a) CycleTest1(RegNo, TestDate, TestTime, HallNo)
CycleTest2(FacultyID, TestDate, HallNo)
b) CycleTest1(RegNo, TestDate, TestTime, FacultyID)
CycleTest2(TestDate, HallNo)
c) CycleTest1(RegNo, TestDate, TestTime, FacultyID)
CycleTest2(FacultyID, TestDate, HallNo)
d) CycleTest1(RegNo, TestDate, TestTime, FacultyID)
CycleTest2(FacultyID, HallNo)
Answer : c

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

20. Of the given schedules, which one is conflict serializable?

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

23. Identify the correct statement about the given schedule.

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

26. Consider the following log records

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?

a) Undo: T3, T1; Redo: T2


b) Undo: T1, T2; Redo: T3
c) Undo: T2; Redo: T1, T3
d) Undo: T3; Redo: T1,T2
Answer : a

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

a) S1 and S2 are view equivalent


b) S1 and S2 are not view equivalent
c) S3 and S4 are view equivalent
d) S3 and S4 are not view equivalent
Answer : b and d

31. Identify the correct statement


a) Share lock is compatible with share lock
b) Share lock is compatible with exclusive lock
c) Exclusive lock is compatible with share lock
d) Exclusive lock is compatible with Exclusive lock
Answer : A

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

a) Indicates Lost update anomaly


b) Indicates Lost delete anomaly
c) No indication of Lost update anomaly
d) Indicates both lost update and lost delete anomalies
Answer : a

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

You might also like