Which type of lock prevents other concurrent transactions from obtaining any form of lock on the same row, securing exclusive read and write access? MCQ with Answer and Explanation

Which type of lock prevents other concurrent transactions from obtaining any form of lock on the same row, securing exclusive read and write access?
A. Exclusive Lock
B. Implicit Lock
C. Static Lock
D. Shared Lock
Answer: Option A
Solution (By JKSSB Mock Tests)
An Exclusive Lock (X-lock) blocks all other locks, ensuring that only the transaction holding the lock can modify or read the protected resource.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
What is the difference between a database and a data warehouse?
A. Both A and B
B. Databases store current data; data warehouses store historical data
C. Databases are for OLTP, data warehouses for OLAP
D. They are the same

Correct Answer: Option A


Explanation:
Databases are optimized for transaction processing (OLTP), while data warehouses are designed for analytical reporting (OLAP) using historical data.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is an alternate key?
A. A candidate key that is not chosen as the primary key
B. A super key with extra attributes
C. The primary key
D. A foreign key

Correct Answer: Option A


Explanation:
An alternate key is any candidate key that is not the primary key.

This question belongs to: Computer Database Management System (DBMS)
Question #3
A view in DBMS is:
A. A virtual table based on the result of a query
B. A physical copy of the table
C. A backup of the database
D. An index on the table

Correct Answer: Option A


Explanation:
A view is a virtual table derived from one or more base tables.

This question belongs to: Computer Database Management System (DBMS)