What is a deadlock in a database? MCQ with Answer and Explanation

What is a deadlock in a database?
A. A system crash
B. A situation where two or more transactions are waiting indefinitely for each other to release locks
C. A type of backup
D. A query error
Answer: Option B
Solution (By JKExamLibrary)
Deadlock occurs when each transaction holds a lock that the other needs, resulting in a circular .

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What is the purpose of the SQL 'IN' operator?
A. To check if a value is null
B. To check if a value is between two values
C. To join tables
D. To check if a value matches any value in a list

Correct Answer: Option D


Explanation:
IN is used to test membership in a set of values.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which of the following database concepts deals with grouping a set of SQL statements into a single logical unit of execution?
A. View definition
B. Indexing
C. Transaction
D. Normalization

Correct Answer: Option C


Explanation:
A Transaction is a sequence of one or more SQL operations treated as a single, indivisible unit of work that must either succeed completely or fail completely.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
Which wildcard character is used with the SQL LIKE operator to represent zero, one, or multiple characters?
A. Percentage sign (%)
B. Underscore (_)
C. Hash (#)
D. Ampersand (&)

Correct Answer: Option A


Explanation:
The percentage sign (%) is used as a wildcard character to match any sequence of zero or more characters in an SQL LIKE string comparison query.

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