1. The consistency of transactions (a) refers to the fact that if a

advertisement
1. The consistency of transactions
(a) refers to the fact that if a transaction is started in any database state, it leaves the
database in a consistent state.
(b) ensures that the outputs produced by the transactions will always be consistent.
(c) implies that when a transaction does multiple updates, each will be consistent.
(d) None of the above.
2. Atomicity of transactions refers to the requirement that
(a) each transaction updates exactly one indivisible entity of a database
(b) either all operations of the transaction are reected in the database or none are
(c) each transaction preserves the correctness of the database
(d) when one transaction executes all other transactions should be made to wait
3. Given a schedule for transactions t1 and t2 we can say that
(a) the transactions compute the correct result if t1 executed only after t2 committed
(b) the transactions compute the correct result if t1 and t2 executed concurrently but did
not access any common data items
(c) all of the above statements are correct
4. A bank reverses its account holders 7% interest if their balance is above 10000, else 6%.To achieve
this, each of the following SQL statements is executed as separate transactions t1 and t2.
t1 : update account set balance = balance * 1.6
where balance <= 10000
t2 : update account set balance = balance * 1.7
where balance > 10000
Then t1 and t2
(a) must be executed one after the other but either order is acceptable
(b) must be executed one after the other but with t1 going first
(c) must be executed one after the other but with t2 going first
(d) can be executed concurrently
Download