GATE CS 2015, set 2 · Question 31 · Databases · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the following transaction involving two bank accounts x and y.
read(x); x := x - 50; write(x); read(y); y:= y + 50; write(y)
The constraint that the sum of the accounts x and y should remain constant is that of

  1. (A) Atomicity
  2. (B) Consistency
  3. (C) Isolation
  4. (D) Durability
Answer

Answer (B)

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes