Concurrency Control Protocol MCQ
1.
If a transaction has obtained a __________
lock, it can read but cannot write on the item
a) Shared mode
b) Exclusive mode
c) Read only mode
d) Write only mode
2.
If a transaction has obtained a ________
lock, it can both read and write on the item
a) Shared mode
b) Exclusive mode
c) Read only mode
d) Write only mode
3.
A transaction can proceed only after the
concurrency control manager ________ the lock to the transaction
a) Grants
b) Requests
c) Allocates
d) None of the mentioned
4.
If a transaction can be granted a lock on an
item immediately in spite(बावजूद) of the presence of another mode, then the two
modes are said to be ________
a) Concurrent
b) Equivalent
c) Compatible
d) Executable
5.
A transaction is made to wait until all
________ locks held on the item are released
a) Compatible
b) Incompatible
c) Concurrent
d) Equivalent
6.
The situation where no transaction can
proceed with normal execution is known as ________
a) Road block
b) Deadlock
c) Execution halt
d) Abortion
7.
The protocol that indicates when a
transaction may lock and unlock each of the data items is called as __________
a) Locking protocol
b) Unlocking protocol
c) Granting protocol
d) Conflict protocol
8.
If a transaction T may never make progress,
then the transaction is said to be ____________
a) Deadlocked
b) Starved
c) Committed
d) Rolled back
9.
The two phase locking protocol consists which
of the following phases?
a) Growing phase
b) Shrinking phase
c) Both a and b
d) None of the mentioned
10.
If a transaction may obtain locks but may not
release any locks then it is in _______ phase
a) Growing phase
b) Shrinking phase
c) Deadlock phase
d) Starved phase
11.
If a transaction may release locks but may not
obtain any locks, it is said to be in ______ phase
a) Growing phase
b) Shrinking phase
c) Deadlock phase
d) Starved phase
12.
Which of the following cannot be used to
implement a timestamp
a) System clock
b) Logical counter
c) External time counter
d) None of the mentioned
13.
A logical counter is _________ after a new
timestamp has been assigned
a) Incremented
b) Decremented
c) Doubled
d) Remains the same
14.
Which of the following timestamp based
protocols generates serializable schedules?
a) Thomas write rule
b) Timestamp ordering protocol
c) Validation protocol
d) None of the mentioned
15.
The _________ requires each transaction
executes in two or three different phases in its lifetime
a) Validation protocol
b) Timestamp protocol
c) Deadlock protocol
d) View protocol
16.
During __________ phase, the system reads
data and stores them in variables local to the transaction.
a) Read phase
b) Validation phase
c) Write phase
d) None of the mentioned
17.
During the _________ phase the validation
test is applied to the transaction
a) Read phase
b) Validation phase
c) Write phase
d) None of the mentioned
18.
During the _______ phase, the local variables
that hold the write operations are copied to the database
a) Read phase
b) Validation phase
c) Write phase
d) None of the mentioned
19.
Read only operations omit the _______ phase
a) Read phase
b) Validation phase
c) Write phase
d) None of the mentioned
No comments:
Post a Comment