Which of the following is a method to avoid deadlock? MCQ with Answer and Explanation

Which of the following is a method to avoid deadlock?
A. Lock ordering
B. Using a timeout
C. Deadlock detection and resolution
D. All of the above
Answer: Option D
Solution (By JKSSB Mock Tests)
Strategies to handle deadlocks include timeout, lock ordering, and detection with rollback.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What does ACID stand for in database transactions?
A. Accuracy, Control, Integrity, Data
B. Atomicity, Consistency, Isolation, Durability
C. All Correct Information Display
D. Access, Create, Insert, Delete

Correct Answer: Option B


Explanation:
ACID properties ensure reliable transaction processing in DBMS.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which SQL function returns the current date and time?
A. CURDATE()
B. NOW()
C. All of the above depending on the DBMS
D. GETDATE()

Correct Answer: Option C


Explanation:
Different DBMSs have different functions: MySQL NOW(), SQL Server GETDATE(), etc. But all return current date/time.

This question belongs to: Computer Database Management System (DBMS)
Question #3
An attribute that can be broken down into smaller, independent sub-parts with independent meanings (such as Name into First_Name and Last_Name) is called a what?
A. Simple Attribute
B. Multi-valued Attribute
C. Derived Attribute
D. Composite Attribute

Correct Answer: Option D


Explanation:
A Composite Attribute is one that can be divided into smaller sub-components or meaningful independent fields.

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