Managing Multiuser Databases(Engineering > Computer Science And Engineering > Database System ) Questions and Answers
Question 1. Locks placed by command are called ________ .
shared locks
exclusive locks
explicit locks
implicit locks
Explanation:-
Answer: Option C. -> explicit locks
Question 2. In this instance, dirty reads are disallowed, while nonrepeatable reads and phantom reads are allowed.
Read uncommitted
Repeatable read
Read committed
Serializable
Explanation:-
Answer: Option C. -> Read committed
Question 3. Which of the following locks the item from change but not from read?
Explicit lock
Exclusive lock
Shared lock
Implicit lock
Explanation:-
Answer: Option C. -> Shared lock
Question 4. A transaction for which all committed changes are permanent is called:
consistent.
durable.
isolated.
atomic.
Explanation:-
Answer: Option B. -> durable.
Question 5. Which of the following occurs when a transaction rereads data and finds new rows that were inserted by a command transaction since the prior read?
Dirty read
Phantom read
Consistent read
Nonrepeatable read
Explanation:-
Answer: Option B. -> Phantom read
Question 6. Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?
Nonrepeatable read
Dirty read
Phantom read
Consistent read
Explanation:-
Answer: Option A. -> Nonrepeatable read
Question 7. Which of the following refers to a cursor type where changes of any type and from any source are visible?
Dynamic
Forward only
Keyset
Static
Explanation:-
Answer: Option A. -> Dynamic
Question 8. The advantage of optimistic locking is that:
the lock never needs to be obtained.
the lock is obtained before the transaction has processed.
the lock is obtained only after the transaction has processed.
transactions that are best suited are those with a lot of activity.
Explanation:-
Answer: Option C. -> the lock is obtained only after the transaction has processed.
Question 9. Which of the following disallows both dirty reads and nonrepeatable reads, but allows phantom reads?
Serializable
Repeatable read
Read uncommitted
Read committed
Explanation:-
Answer: Option B. -> Repeatable read
Question 10. Which of the following refers to a cursor type that when the cursor is opened, a primary key value is saved for each row in the recordset; when the application accesses a row, the key is used to fetch the current values of the row?