Engineering Questions with Answers - Multiple Choice Questions

Database MCQ – Multiple Granularity

1 - Question

In a granularity hierarchy the highest level represents the
a) Entire database
b) Area
c) File
d) Record

View Answer

Answer: a
Explanation: This level is the root of the tree.




2 - Question

In a database the file is contained in ________
a) Entire database
b) Two area
c) One area
d) more than one area

View Answer

Answer: c
Explanation: This level is below the root of the tree.




3 - Question

If a node is locked in an intention mode, explicit locking is done at a lower level of the tree. This is called
a) Intention lock modes
b) Explicit lock
c) Implicit lock
d) Exclusive lock

View Answer

Answer: a
Explanation: There is an intention mode associated with shared mode, and there is one with an exclusive mode.




4 - Question

If a node is locked in __________ explicit locking is being done at a lower level of the tree, but with only shared-mode locks.
a) Intention lock modes
b) Intention-shared-exclusive mode
c) Intention-exclusive (IX) mode
d) Intention-shared (IS) mode

View Answer

Answer: a
Explanation: There is an intention mode associated with shared mode, and there is one with an exclusive mode.




5 - Question

If a node is locked in ____________ then explicit locking is being done at a lower level, with exclusive-mode or shared-mode locks.
a) Intention lock modes
b) Intention-shared-exclusive mode
c) Intention-exclusive (IX) mode
d) Intention-shared (IS) mode

View Answer

Answer: c
Explanation: There is an intention mode associated with shared mode, and there is one with an exclusive mode.




6 - Question

If a node is locked in ______________ the subtree rooted by that node is locked explicitly in shared mode, and that explicit locking is being done at a lower level with exclusive-mode locks.
a) Intention lock modes
b) shared and intention-exclusive (SIX) mode
c) Intention-exclusive (IX) mode
d) Intention-shared (IS) mode

View Answer

Answer: b
Explanation: There is an intention mode associated with shared mode, and there is one with an exclusive mode.




7 - Question

____________ denotes the largest timestamp of any transaction that executed write(Q) successfully.
a) W-timestamp(Q)
b) R-timestamp(Q)
c) RW-timestamp(Q)
d) WR-timestamp(Q)

View Answer

Answer: a
Explanation: The most common method for doing ordering transaction is to use a timestamp-ordering scheme.




8 - Question

The _____________ ensures that any conflicting read and write operations are executed in timestamp order.
a) Timestamp-ordering protocol
b) Timestamp protocol
c) W-timestamp
d) R-timestamp

View Answer

Answer: a
Explanation: The most common method for doing ordering transaction is to use a timestamp-ordering scheme.




9 - Question

The __________ requires that each transaction Ti executes in two or three different phases in its lifetime, depending on whether it is a read-only or an update transaction.
a) Validation protocol
b) Validation-based protocol
c) Timestamp protocol
d) Timestamp-ordering protocol

View Answer

Answer: a
Explanation: A concurrency-control scheme imposes the overhead of code execution and possible delay of transactions. It may be better to use an alternative scheme that imposes less overhead.




10 - Question

This validation scheme is called the _________ scheme since transactions execute optimistically, assuming they will be able to finish execution and validate at the end.
a) Validation protocol
b) Validation-based protocol
c) Timestamp protocol
d) Optimistic concurrency-control

View Answer

Answer: a
Explanation: A concurrency-control scheme imposes the overhead of code execution and possible delay of transactions. It may be better to use an alternative scheme that imposes less overhead.

Get weekly updates about new MCQs and other posts by joining 18000+ community of active learners