Machine-translated by Google. Questions are authored in English.
Top

Managing Multiuser Databases Questions and Answers

11.

Which of the following are the lock modes in multiple granularity locking ?

(i) S
(ii) X
(iii) SIX
(iv) IX
(v) IS

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: D

All five are lock modes, so the answer is (i), (ii), (iii), (iv) and (v).

Multiple granularity locking adds intention modes to the ordinary shared (S) and exclusive (X) locks, so that a transaction can lock a whole file or a single record consistently. IS (intention-shared) and IX (intention-exclusive) on a node announce shared or exclusive locks lower in the tree, and SIX (shared and intention-exclusive) locks a node in shared mode while signalling exclusive locks below.

Each of the narrower options leaves out one or more of these standard modes.

Please log in or register to report this question.

12.

Which amongst the following statements are correct ?

(i) Writing a database object without reading its initial value is called Blind write
(ii) In wound wait technique, the number of rollback is low
(iii) In wait-die technique, the younger transaction is never rolled back
(iv) The different locks in 2PL mechanism are shared, read, write and unlock.

Exam Year(s)

MH SET - 2023, SET Exam - 2023,

Answer: B

Statements (i) and (ii) are correct, so the answer is (i) & (ii).

(i) A blind write is exactly a write to a data item that the transaction has not read first. (ii) In wound-wait, an older transaction wounds (rolls back) a younger one, but a younger transaction simply waits for an older one; this is generally reckoned to cause fewer rollbacks than wait-die.

(iii) is false: in wait-die it is precisely the younger transaction that dies (is rolled back) when it requests an item held by an older one. (iv) is false: two-phase locking uses shared (read) and exclusive (write) locks, with unlock as an operation, not a lock mode, and 'shared' and 'read' are the same lock. Any option including (iii) or (iv) is therefore wrong.

Please log in or register to report this question.

Answer: A

A transaction becomes partially committed when it finishes the execution of its final statement.

The transaction states are active, partially committed, committed, failed and aborted. After the last statement executes, the transaction is partially committed: its effects may still be only in memory buffers. It becomes committed once enough information has been written to stable storage, which is when the commit record reaches the log.

Starting the first statement puts a transaction in the active state, writing COMMIT to the log marks the committed state, and every successful transaction passes through partial commit.

Please log in or register to report this question.

14.

Which concurrency control protocol uses timestamp ordering ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: B

The protocol is the timestamp-based protocol.

The timestamp-ordering protocol gives each transaction a unique timestamp when it starts and keeps a read and a write timestamp on each data item. A conflicting operation that would break timestamp order is rejected and its transaction rolled back, so the schedule is equivalent to running transactions in timestamp order.

Two-phase locking orders transactions by locks, not timestamps. Validation-based (optimistic) control does use timestamps, but to check at commit time rather than to order operations. Snapshot isolation reads from a consistent snapshot. Neither is the timestamp-ordering protocol.

Please log in or register to report this question.

Answer: A

ACID stands for Atomicity, Consistency, Isolation, Durability.

Atomicity means a transaction happens completely or not at all. Consistency means it takes the database from one valid state to another. Isolation means concurrent transactions do not see each other's partial work. Durability means committed changes survive crashes. Together these properties make transactions reliable.

The other expansions swap in accuracy, concurrency, integrity or distribution. These are related database ideas, but they are not the four ACID properties.

Please log in or register to report this question.

Answer: D

The scenario is a transaction reads a data item after it is written by an uncommitted transaction.

This is a dirty read. If the reading transaction commits and the writing transaction then aborts, the reader has committed a decision based on a value that never officially existed, and it cannot be rolled back. The schedule is not recoverable.

Reading after another read causes no conflict. Reading a value written by a committed transaction is safe. Writing after an uncommitted read is a write-after-read conflict, which affects serializability but does not make committed work depend on an aborted value.

Please log in or register to report this question.

17.

Consider the following transaction involving two bank accounts x and y.

read(x); x := x - 50; write(x); read(y); y := y + 50; write(y)

The constraint that the sum of the accounts x and y should remain constant is that of

Exam Year(s)

Tripura Public Service Commission - 2025,

Answer: B

The constraint is that of Consistency.

Consistency means a transaction takes the database from one valid state to another, preserving its integrity constraints. Keeping the sum of x and y unchanged after moving 50 from one account to the other is exactly such a constraint.

Atomicity ensures both writes happen or neither does, isolation keeps concurrent transactions from seeing each other's intermediate states, and durability keeps committed results after a crash. None of them is the rule about the sum itself.

Please log in or register to report this question.

18.

In a high-concurrency database system, two transactions are waiting for each other's locked resources. What is the most effective automatic way for a DBMS to handle this situation ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: C

The most effective automatic method is Deadlock detection and victim selection.

Two transactions each waiting for a lock the other holds is a deadlock. A DBMS detects it by finding a cycle in the wait-for graph, then chooses a victim, typically the transaction that has done the least work, and rolls it back so the other can proceed. The victim is restarted later.

A larger buffer cache does nothing about lock waits. Switching to optimistic locking is a design change, not an automatic response to a deadlock in progress. Spooling avoids deadlock for devices such as printers, not database locks.

Please log in or register to report this question.

19.

Which database property ensures that even in the event of a system failure or power loss, the results of a committed transaction are permanently recorded ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: C

The property is Durability.

Durability, the D of ACID, guarantees that once a transaction commits, its changes survive any later failure, including a crash or power loss. DBMSs achieve this by writing the transaction's log records to stable storage before the commit is acknowledged (write-ahead logging) and replaying them on recovery.

Atomicity means a transaction happens completely or not at all, consistency means it moves the database between valid states, and isolation means concurrent transactions do not see each other's intermediate work.

Please log in or register to report this question.

20.

Locks placed by command are implicit locks.

Answer: B

Correct answer: False

Locks placed by command are explicit; implicit locks are those the DBMS places on its own initiative to enforce the isolation level in force. The two terms classify locks by who asked for them, which is a different question from whether the lock is shared or exclusive.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Managing Multiuser Databases Questions and Answers || Managing Multiuser Databases MCQ Questions and Answers || Managing Multiuser Databases GK Questions and Answers || Managing Multiuser Databases GK MCQ Questions || Managing Multiuser Databases Multiple Choice Questions and Answers || Managing Multiuser Databases GK || GK on Managing Multiuser Databases || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database