Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Indexes 3

When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp smaller than that of Tj (that is, Ti is older than Tj). Otherwise, Ti is rolled back (dies). This is
wait-die
click to copy
Snapshot isolation is used to give
transaction a snapshot of the database and database a snapshot of committed values in the transaction
click to copy
The assumption that hardware errors and bugs in the software bring the system to a halt, but do not corrupt the nonvolatile storage contents, is known as the
fail-stop assumption
click to copy

DBMS → Transactions 3

When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp larger than that of Tj (that is, Ti is younger than Tj ). Otherwise, Tj is rolled back (Tj is wounded by Ti). This is
wound-wait
click to copy
Lost update problem is
second update overwrites the first
click to copy
The database is partitioned into fixed- length storage units called
blocks
click to copy

DBMS → Concurrency Control 3

The situation where the lock waits only for a specified amount of time for another lock to be released is
lock timeout
click to copy
Each of a pair of transactions has read data that is written by the other, but there is no data written by both transactions, is referred to as
none of the mentioned
click to copy
The log is a sequence of                     recording all the update activities in the database.
log records
click to copy

DBMS → Deadlock 3

The deadlock in a set of a transaction can be determined by
read-only graph
click to copy
Which statements are correct regarding indexes?
all of the mentioned
click to copy
In the                        scheme, a transaction that wants to update the database first creates a complete copy of the database.
shadow copy
click to copy

DBMS → Database Security 2

A deadlock exists in the system if and only if the wait-for graph contains a                        
cycle
click to copy
A non-correlated subquery can be defined as                 
a set of one or more sequential queries in which generally the result of the inner query is used as the search value in the outer query
click to copy

DBMS → PL/SQL 2

                     rollback requires the system to maintain additional information about the state of all the running transactions.
partial
click to copy
Which statement is true regarding synonyms?
a public synonym and a private synonym can exist with the same name for the same table
click to copy

DBMS → Introduction to DBMS 2

If a node is locked in an intention mode, explicit locking is done at a lower level of the tree. This is called
intention lock modes
click to copy
The method of access that uses key transformation is called as
hash
click to copy

DBMS → Database Architecture 2

If a node is locked in                      explicit locking is being done at a lower level of the tree, but with only shared-mode locks.
intention lock modes
click to copy
Why do we need concurrency control on B+ trees ?
to maintain accuracy of index
click to copy

DBMS → Data Models 2

If a node is locked in                          then explicit locking is being done at a lower level, with exclusive-mode or shared-mode locks.
intention-exclusive (ix) mode
click to copy
How many techniques are available to control concurrency on B+ trees?
none of the mentioned
click to copy

DBMS → ER Model 2

If a node is locked in                              the subtree rooted by that node is locked explicitly in shared mode, and that explicit locking is being done at a lower level with exclusive-mode locks.
shared and intention-exclusive (six) mode
click to copy
In crabbing protocol locking
goes down the tree and back up
click to copy

DBMS → Relational Model 2

The                      requires that each transaction Ti executes in two or three different phases in its lifetime, depending on whether it is a read-only or an update transaction.
validation protocol
click to copy
The deadlock can be handled by
restarting the search after releasing the lock
click to copy

DBMS → Normalization 2

                         denotes the largest timestamp of any transaction that executed write(Q) successfully.
w-timestamp(q)
click to copy
In crabbing protocol, the lock obtained on the root node is in                    mode.
shared
click to copy

DBMS → Functional Dependency 2

The most recent version of standard SQL prescribed by the American National Standards Institute is
sql 2016
click to copy
If needed to split a node or coalesce it with its siblings, or redistribute key values between siblings, the crabbing protocol locks the parent of the node in                           mode.
exclusive
click to copy

DBMS → SQL Basics 2

ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause. A special operator used to check whether an attribute value is null is
is null
click to copy
Instead of locking index leaf nodes in a two-phase manner, some index concurrency- control schemes use                        on individual key values, allowing other key values to be inserted or deleted from the same leaf.
key-value locking
click to copy

DBMS → DDL Commands 2

A lock that prevents the use of any tables in the database from one transaction while another transaction is being processed is called a
database-level lock
click to copy
The recovery scheme must also provide
high availability
click to copy

DBMS → DML Commands 2

A condition that occurs when two transactions wait for each other to unlock data is known as a(n)
deadlock
click to copy
Which one of the following is a failure to a system
transaction failure
click to copy

DBMS → Joins 2

The extent of the database resource that is included with each lock is called the level of
granularity
click to copy
The system has entered an undesirable state (for example, deadlock), as a result of which a transaction cannot continue with its normal execution. This is
logical error
click to copy

DBMS → Views 2

DBMS periodically suspends all processing and synchronizes its files and journals through the use of
checkpoint facility
click to copy
The transaction can no longer continue with its normal execution because of some internal condition, such as bad input, data not found, overflow, or resource limit exceeded. This is
logical error
click to copy