Question
Which of the following scenarios violates the Isolation
property in the ACID properties of a transaction?ÂSolution
The Isolation property ensures that the operations of a transaction are isolated from other transactions. In scenario A, when a transaction reads uncommitted data from another transaction (dirty reads), the Isolation property is violated. This leads to incorrect or inconsistent data being processed if the uncommitted transaction rolls back or is otherwise altered before completion. Ensuring isolation prevents such scenarios, as transactions should not be able to see the intermediate states of other transactions. Why Other Options are Incorrect: B) A transaction rolls back after detecting a deadlock: This preserves consistency and is not a violation of Isolation. C) Multiple transactions write data concurrently but respect unique constraints: This scenario adheres to isolation as each transaction operates in its own space without interference. D) A transaction is lost due to a server crash: This is related to the Durability property, not Isolation. E) A transaction reads stale data: This is a violation of Consistency or Atomicity, depending on the situation, but not necessarily Isolation.
In a 5-stage pipeline (Fetch, Decode, Execute, Memory, Write-back), how many instructions can be in various stages of processing at the same time?
A transformer has a primary coil with 300 turns and a secondary coil with 150 turns. If the primary voltage is 240V, calculate the secondary voltage.
Which of the following is a common problem that synchronization mechanisms address in multi-threaded or multi-process environments?
What happens when a program accesses data that is not currently in physical memory (RAM) due to virtual memory management?
Which of the following is not a valid keyword in C++ language?
XML is designed to ____ and ____ data)
What is the main purpose of a digital signature in public key cryptography?
The best case time complexity of selection sort?
What is the space complexity of an algorithm?
Which functions are declared inside a class have to be defined separately outside the class?