CS3492 DBMS-Important-2-Mark With Answer
CS3492 DBMS-Important-2-Mark With Answer
IMPORTANT 2 MARKS
UNIT: 1
2. What is a data model? List the types of data model used. April/May-2011
A database model is the theoretical foundation of a database and fundamentally determines in
which manner data can be stored, organized, and manipulated in a database system. It thereby
defines the infrastructure offered by a particular database system. The most popular example of a
database model is the relational model.
Types of data model used
Hierarchical model
Network model
Relational model
Entity-relationship
Object-relational model
Object model
UNIT:2
UNIT:3
1. What are the ACID properties? APRIL/MAY-2011
(atomicity, consistency, isolation, durability) is a set of properties that guarantee database
transactions are processed reliably. In the context of databases, a single logical operation on the
data is called a transaction. For example, a transfer of funds from one bank account to another,
even though that might involve multiple changes (such as debiting one account and crediting
another), is a single transaction.
20. What are the two methods for dealing deadlock problem?
The two methods for dealing deadlock problem is deadlock detection and deadlock recovery.
35. Differentiate strict two phase locking protocol and rigorous two phase locking
protocol.
In strict two phase locking protocol all exclusive mode locks taken by a transaction is held
until that transaction commits.
Rigorous two phase locking protocol requires that all locks be held until the transaction
commits.
36. How the time stamps are implemented
• Use the value of the system clock as the time stamp. That is a transaction‟s time stamp is equal
to the value of the clock when the transaction enters the system.
• Use a logical counter that is incremented after a new timestamp has been assigned; that is the
time stamp is equal to the value of the counter.
37. What are the time stamps associated with each data item?
• W-timestamp (Q) denotes the largest time stamp if any transaction that executed WRITE (Q)
successfully.
• R-timestamp (Q) denotes the largest time stamp if any transaction that executed READ (Q)
successfully.
UNIT:4
1. What are the advantages and disadvantages of indexed sequential file? APRIL/MAY-
2011
The advantage of ordering records in a sequential file according to a key is that you can then
search the file more quickly. If you know the key value that you want, you can use one of the
relatively fast searches. The disadvantage is that when you insert, you need to rewrite at least
everything after the insertion point, which makes inserts very expensive unless they are done at
the end of the file. An indexed file approach keeps a (hopefully) small part of each row, and
some kind of "pointer" to the row's location within the data file. This allows a search to use the
index, which is ordered by the index and (again hopefully) much smaller and therefore much
faster than scanning the entire data file for the indexed data.
UNIT:5