engineering computer science MCQ #809

What is a deadlock in a database?

engineering computer science MCQ #809

  1. Question 1

    Q1. What is a deadlock in a database?

    • A) A situation where two or more transactions are blocked, waiting for each other to release resources
    • B) A situation where a transaction is blocked, waiting for a resource
    • C) A situation where a transaction is rolled back
    • D) A situation where a transaction is committed

    Answer: A situation where two or more transactions are blocked, waiting for each other to release resources

    Explanation: Deadlock occurs when two or more transactions are blocked, waiting for each other to release resources, resulting in a stalemate.