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
- (A) Atomicity
- (B) Consistency
- (C) Isolation
- (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