Filters
Question type

Study Flashcards

What are the three basic techniques to control deadlocks?

Correct Answer

verifed

verified

Deadlock prevention.A transaction reques...

View Answer

The ____________________ rule states that only one transaction at a time can own an exclusive lock on the same object.

Correct Answer

verifed

verified

Most multiuser ______________________________ automatically initiate and enforce locking procedures,where all locking information is managed by the lock manager.

Correct Answer

verifed

verified

DBMSs
Data...

View Answer

A(n) ____ condition occurs when two or more transactions wait for each other to unlock data.


A) deadlock
B) exclusive lock
C) binary lock
D) two-phase lock

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

____ are required to prevent another transaction from reading inconsistent data.


A) Locks
B) Schedules
C) Stamps
D) Logs

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

____________________ control is important because the simultaneous execution of transactions over a shared database can create several data integrity and consistency problems.

Correct Answer

verifed

verified

A growing phase in a two-phase lock is when a transaction acquires all the required locks without locking any data.

A) True
B) False

Correct Answer

verifed

verified

Although the DBMS is designed to recover a database to a previous consistent state when an interruption prevents the completion of a required set of transactions,the transactions themselves are defined by the end user or programmer and must be semantically correct.

A) True
B) False

Correct Answer

verifed

verified

The ____ approach to scheduling concurrent transactions assigns a global unique stamp to each transaction.


A) scheduled
B) table-locking
C) unique
D) time stamping

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

____ means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.


A) Serializability
B) Atomicity
C) Isolation
D) Time stamping

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

The phenomenon of uncommitted data occurs when two transactions are executed concurrently and the first transaction is rolled back after the second transaction has already accessed the uncommitted data-thus violating the isolation property of transactions.

A) True
B) False

Correct Answer

verifed

verified

Uniqueness ensures that no equal time stamp values can exist,and ____________________ ensures that time stamp values always increase.

Correct Answer

verifed

verified

When using an optimistic approach,a transaction reads the database,executes the needed computations,and makes the updates to a private copy of the database values.

A) True
B) False

Correct Answer

verifed

verified

True

Explain the transaction log.What is its function?

Correct Answer

verifed

verified

A DBMS uses a transaction log to keep track of all transactions that update the database.The information stored in this log is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement,a program's abnormal termination,or a system failure such as a network discrepancy or a disk crash.

As a rule,a(n)____________________ must unlock the object after its termination.

Correct Answer

verifed

verified

transaction

If a(n)____________________ is issued before the termination of a transaction,the DBMS will restore the database only for that particular transaction,rather than for all transactions,in order to maintain the durability of the previous transactions.

Correct Answer

verifed

verified

The DBMS keeps several copies of ____________________ to ensure that a disk physical failure will not impair the DBMS's ability to recover data.

Correct Answer

verifed

verified

The information stored in the ____ is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement,a program's abnormal termination,or a system failure such as a network discrepancy or a disk crash.


A) data dictionary
B) metadata
C) rollback manager
D) transaction log

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

ANSI defines four events that signal the end of a transaction.Of the following events,which is defined by ANSI as being equivalent to a COMMIT?


A) Five SQL statements are executed.
B) The end of a program is successfully reached.
C) The program is abnormally terminated.
D) The database is shut down for maintenance.

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

Atomicity indicates the permanence of the database's consistent state.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 70

Related Exams

Show Answer