Database Homework Help
Database Homework Help
If there is a crash just after step 9 and the recovery of the system
is successfully completed, identify the correct actions for the
above scenario.
a) After recovery completion, value of Z will be 500.
b) After recovery completion, value of X will be 500.
c) Redo list contains transaction {T0} and undo list contains (Ti,
T2, T3}.
d) Redo list contains transactions {TO, T1.} and undo list
contains {T2, T3}.
Answer: b), C)
Q2.
Choose the correct set of log entries for the recovery of transactions.
Answer : C)
Q3
Answer : C)
Q4. Let us consider the following statistics for searching for a
condition in a given relation.
Number of blocks containing record of the relation (b) = 200 Time
to transfer one block (tb) = 0.4 milliseconds Time for one seek (t5)
= 4 milliseconds Identify the cost of selection query on a key
attribute using linear search file scan.
a) 84 milliseconds
b) 50.4 milliseconds
c) 4.44 milliseconds
d) 44 milliseconds
Answer: D)
Q5.
Consider the following state of transactions and the statements
below.
1. T1, T2 and T3 can be ignored.
c) 1), 4), 5)
d) 2), 4), 5)
Answer : C)
Q6.
Let us consider the following statistics for two relations Pizza and
SoldBy:
Answer : b)
Q7.
Consider the following relational schema: Pilots(pilotid, pname,
rating, age) Flights(flightno, fname, colour)
Flies(pid, fno, date, time)
Answer : C)
Q8.
Consider the following relational schema:
Pilots(pilotid, pname, rating, age)
Flights(flightno, fname, colour)
Flies(pid, fno, date, time)
Answer: a) c)
Q9. Identify the incorrect statement(s) from the followings.
Answer: b)
Q10.
Consider the Relational Algebra expression given below:
where A, D, and C are relational algebra
expressions. Identify the correct equivalent relational algebra
expression of the above relational algebra expression.
Answer: b)