0% found this document useful (0 votes)
209 views8 pages

Questions On Transactions Control

The document contains 7 multiple choice questions about database transaction concepts including serialization, recoverability, isolation levels, concurrency control protocols and two phase commit protocol. The questions test understanding of scheduling conflicts, ACID properties, and ensuring serializability.

Uploaded by

kanika paliwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
209 views8 pages

Questions On Transactions Control

The document contains 7 multiple choice questions about database transaction concepts including serialization, recoverability, isolation levels, concurrency control protocols and two phase commit protocol. The questions test understanding of scheduling conflicts, ACID properties, and ensuring serializability.

Uploaded by

kanika paliwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

NIELIT NIC 2020

Q1. Consider the following schedule for transactions T1, T2 and T3:
T1 T2 T3
Reads (X)

Reads (Y)
Reads (Y)
Writes (Y)
Writes (X)
Writes (X)
Reads (X)
Writes (X)

Which one of the schedules below is the correct serialization of the above?
(a) T1->>T3->>T2
(b) T2->>T1->>T3
(c) T2->>T3->>T1
(d) T3->>T1->>T2
Q2. Consider the following schedule S of transactions T1, T2, T3, T4:
T1 T2 T3 T4
Reads (X)
Writes (X)
Commit
Writes (X)
Commit
Writes (Y)
Reads (Z)
Commit
Reads (X)
Reads (Y)
Commit

Which one of the following statements is CORRECT?


(a) S is conflict-serializable but not recoverable
(b) S is not conflict-serializable but is recoverable
(c) S is both conflict-serializable and recoverable
(d) S is neither conflict-serializable nor is it recoverable
Q3. Which of the following scenarios may lead to an irrecoverable error in a database system?
(a) A transaction writes a data item after it is read by an uncommitted transaction
(b) A transaction reads a data item after it is read by an uncommitted transaction
(c) A transaction reads a data item after it is written by a committed transaction
(d) A transaction reads a data item after it is written by an uncommitted transaction
Q4. Which one of the following is NOT a part of the ACID properties of database transactions?
(a) Atomicity
(b) Consistency
(c) Isolation
(d) Deadlock-freedom
Q5. Which of the following is the highest isolation level in transaction management?
(a) Serializable
(b) Repeated Read
(c) Committed Read
(d) Uncommitted Read
Q6. Which of the following concurrency protocol ensures both conflict serializability and freedom from
deadlock?
(i) z - phase Locking
(ii) Time stamp - ordering
(a) Both (a) and (b)
(b) (a) only
(c) (b) only
(d) Neither (a) nor (b)
Q7. Which of the following is correct with respect to Two phase commit protocol?
(a) Ensures serializability
(b) Prevents Deadlock
(c) Detects Deadlock
(d) Recover from Deadlock
Solutions:
1) A
2) C
3) D
4) D
5) A
6) C
7) A

You might also like