Tree Based Protocol MCQ Quiz - Objective Question with Answer for Tree Based Protocol - Download Free PDF
Last updated on Jun 12, 2025
Latest Tree Based Protocol MCQ Objective Questions
Tree Based Protocol Question 1:
In which of the following node locking mechanism, if a node is locked, then explicit locking is being done at a lower level, with exclusive-mode or shared-mode locks ?
Answer (Detailed Solution Below)
Tree Based Protocol Question 1 Detailed Solution
The correct answer is option 1: Intention lock modes
Key Points
- Intention lock modes are used in hierarchical databases or B-trees to signal that a transaction intends to lock a lower-level node.
- They are not actual locks on the data itself, but a way to coordinate locking at multiple levels in a structure.
- Types of intention locks include:
- IS (Intention Shared): Intention to acquire shared locks at lower levels.
- IX (Intention Exclusive): Intention to acquire exclusive locks at lower levels.
- SIX (Shared and Intention Exclusive): Shared lock on current node, intention to get exclusive locks on children.
- If a node is locked with an intention lock, it means **explicit locking** is happening at lower levels with **S (Shared)** or **X (Exclusive)** locks.
Additional Information
- IX mode and IS mode are individual types of intention lock modes, but the question asks for the broader mechanism.
- Intention lock modes as a whole describe the strategy of locking a node while intending to lock children at a lower level.
Hence, the correct answer is: option 1: Intention lock modes
Tree Based Protocol Question 2:
The number of modes in which a transaction may request a Lock in multiple-granularity Locking is :
Answer (Detailed Solution Below)
Tree Based Protocol Question 2 Detailed Solution
The correct answer is: option 4: Six
Concept:
In **multiple-granularity locking**, a transaction can request locks at different levels of a hierarchy (e.g., database, table, page, record), and **six types of lock modes** are defined to support both shared and exclusive access while maintaining concurrency control.
The six lock modes are:
- IS (Intent Shared) – Indicates intention to acquire shared locks at a lower level.
- IX (Intent Exclusive) – Indicates intention to acquire exclusive locks at a lower level.
- S (Shared) – Allows shared access to a data item.
- SIX (Shared Intent Exclusive) – A combination of S and IX. Shared lock on current level and intent exclusive on lower levels.
- X (Exclusive) – Allows read and write access to a data item.
- NULL – No lock held (may be considered in lock compatibility matrices).
Explanation of options:
- Option 1 – Two: ❌ Only covers S and X, not sufficient for multigranularity.
- Option 2 – Five: ❌ Missing one of the standard modes.
- Option 3 – Three: ❌ Too few; excludes intent modes.
- Option 4 – Six: ✅ Correct. Standard multigranularity locking defines six modes.
Hence, the correct answer is: option 4: Six
Tree Based Protocol Question 3:
which of the following is false statement
Answer (Detailed Solution Below)
Tree Based Protocol Question 3 Detailed Solution
Top Tree Based Protocol MCQ Objective Questions
Tree Based Protocol Question 4:
which of the following is false statement
Answer (Detailed Solution Below)
Tree Based Protocol Question 4 Detailed Solution
Tree Based Protocol Question 5:
In which of the following node locking mechanism, if a node is locked, then explicit locking is being done at a lower level, with exclusive-mode or shared-mode locks ?
Answer (Detailed Solution Below)
Tree Based Protocol Question 5 Detailed Solution
The correct answer is option 1: Intention lock modes
Key Points
- Intention lock modes are used in hierarchical databases or B-trees to signal that a transaction intends to lock a lower-level node.
- They are not actual locks on the data itself, but a way to coordinate locking at multiple levels in a structure.
- Types of intention locks include:
- IS (Intention Shared): Intention to acquire shared locks at lower levels.
- IX (Intention Exclusive): Intention to acquire exclusive locks at lower levels.
- SIX (Shared and Intention Exclusive): Shared lock on current node, intention to get exclusive locks on children.
- If a node is locked with an intention lock, it means **explicit locking** is happening at lower levels with **S (Shared)** or **X (Exclusive)** locks.
Additional Information
- IX mode and IS mode are individual types of intention lock modes, but the question asks for the broader mechanism.
- Intention lock modes as a whole describe the strategy of locking a node while intending to lock children at a lower level.
Hence, the correct answer is: option 1: Intention lock modes
Tree Based Protocol Question 6:
The number of modes in which a transaction may request a Lock in multiple-granularity Locking is :
Answer (Detailed Solution Below)
Tree Based Protocol Question 6 Detailed Solution
The correct answer is: option 4: Six
Concept:
In **multiple-granularity locking**, a transaction can request locks at different levels of a hierarchy (e.g., database, table, page, record), and **six types of lock modes** are defined to support both shared and exclusive access while maintaining concurrency control.
The six lock modes are:
- IS (Intent Shared) – Indicates intention to acquire shared locks at a lower level.
- IX (Intent Exclusive) – Indicates intention to acquire exclusive locks at a lower level.
- S (Shared) – Allows shared access to a data item.
- SIX (Shared Intent Exclusive) – A combination of S and IX. Shared lock on current level and intent exclusive on lower levels.
- X (Exclusive) – Allows read and write access to a data item.
- NULL – No lock held (may be considered in lock compatibility matrices).
Explanation of options:
- Option 1 – Two: ❌ Only covers S and X, not sufficient for multigranularity.
- Option 2 – Five: ❌ Missing one of the standard modes.
- Option 3 – Three: ❌ Too few; excludes intent modes.
- Option 4 – Six: ✅ Correct. Standard multigranularity locking defines six modes.
Hence, the correct answer is: option 4: Six
Tree Based Protocol Question 7:
In multiple granularity level locking a transaction is locking a node in Exclusive write mode. At that mode what is the other locks that are permitted.
Answer (Detailed Solution Below)
Tree Based Protocol Question 7 Detailed Solution
In addition to S(shared) and X(exclusive) lock modes, there are three additional lock
modes with multiple granularity:
● intention-shared(IS): indicates explicit locking at a lower level of the tree but only with shared locks.
● intention-exclusive (IX): indicates explicit locking at a lower level with exclusive or shared locks .
● shared and intention-exclusive (SIX): the subtree rooted by that node is locked explicitly in shared mode and explicit locking is being done at a lower level with exclusive-mode locks.
Intention locks allow a higher level node to be locked in S or X mode without having to check all descendent nodes.
The compatibility matrix for all lock modes is:
|
IS |
IX |
S |
SIX |
X |
IS |
Y |
Y |
Y |
Y |
N |
IX |
Y |
Y |
N |
N |
N |
S |
Y |
N |
Y |
N |
N |
SIX |
Y |
N |
N |
N |
N |
X |
N |
N |
N |
N |
N |