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.

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.

15.

The size of a lock is referred to as lock sizing.

Answer: B

Correct answer: False

The term is lock granularity, not lock sizing. It describes whether the lock covers a row, a page, a table or the whole database, and the choice trades concurrency against the overhead of tracking a large number of locks.

Please log in or register to report this question.

16.

A cursor type in which the application sees the data as they were at the time the cursor was opened is called:

Answer: B

Correct answer: static.

A static cursor takes a snapshot of the data when it is opened and shows that snapshot throughout, so changes made by others afterwards are invisible. It is the opposite of the dynamic cursor, and the keyset cursor sits between them, showing changes to the rows originally selected but not rows added later.

Please log in or register to report this question.

17.

Locks placed by command are called ________ .

Answer: B

Correct answer: explicit locks

An explicit lock is one the application asks for by issuing a command; an implicit lock is one the DBMS places on its own initiative to enforce isolation. The distinction is about who requests the lock. Shared and exclusive describe something different - what the lock permits others to do - so the two classifications are independent.

Please log in or register to report this question.

18.

Locks placed by the DBMS are called ________ .

Answer: A

Correct answer: implicit locks

Locks placed by the DBMS on its own initiative, to enforce the isolation level in force, are implicit. An explicit lock is one the application requests by command. Most locking in practice is implicit, which is the point of declaring an isolation level: the developer states what must be prevented and leaves the DBMS to arrange it.

Please log in or register to report this question.

19.

Money is defined in Oracle with the Currency data type.

Answer: B

Correct answer: False

Oracle has no Currency datatype. Money is held in a NUMBER column with an explicit precision and scale, such as NUMBER(9,2), which stores the value exactly rather than in binary floating point - and exactness is what matters for money. The Currency type belongs to other products.

Please log in or register to report this question.

20.

An ACID transaction is one that is atomic, consistent isolated, and durable.

Answer: A

Correct answer: True

The four properties are atomic, consistent, isolated and durable. Atomic means all or nothing; consistent means the database moves from one valid state to another; isolated means concurrent transactions do not see each other’s intermediate states; and durable means committed changes survive failure.

Please log in or register to report this question.

Loading…
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