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 → Introduction to DBMS 31

Recoverable schedule ensures
T_j commits only AFTER all transactions whose data it read have committed
click to copy
Cascadeless schedule prevents
Cascading rollbacks by allowing reads ONLY of committed data
click to copy
ARIES Redo pass
Repeats ALL logged operations to bring DB to exact crash-time state
click to copy
ARIES Undo pass
Reverses loser (uncommitted at crash) transaction operations in reverse log order
click to copy
Log Sequence Number (LSN)
Uniquely identifies and orders each log record (monotonically increasing)
click to copy
Fuzzy checkpoint allows
Active transactions to continue while checkpoint record written to log
click to copy
The 'lost update' problem occurs when
Two transactions update same item and one update is overwritten by the other
click to copy
ARIES uses which buffer management policy combination
No-Force + Steal
click to copy
Rigorous 2PL holds
ALL locks (S and X) until transaction commits or aborts
click to copy
A database block/page is
Unit of data transfer between disk and memory (fixed-size)
click to copy
Seek time is
Time to move disk arm to the correct track
click to copy
Rotational latency is
Time for correct sector to rotate under read/write head
click to copy
Buffer pool is
Portion of main memory caching database pages
click to copy
LRU buffer replacement replaces
LEAST recently used page (oldest access time)
click to copy
Query cost is primarily measured by
Number of disk I/O operations
click to copy
Query optimization selects
Most efficient (lowest cost) execution plan from equivalent alternatives
click to copy
Pushing selection (σ) down operator tree
Reduces intermediate result sizes - fewer tuples flow to expensive operators
click to copy
Pipelining in query processing
Passes tuples directly from one operator to next without full materialization
click to copy
External sort is needed when
Data too large for main memory - disk used for intermediate sorting
click to copy
Heap file stores records
In insertion order with no particular ordering
click to copy
Static hashing limitation is
Bucket overflow and degradation with data growth or shrinkage
click to copy
RAID 1 provides
Data mirroring full redundancy across two disks
click to copy
RAID 5 uses
Striping with distributed parity (can recover from one disk failure)
click to copy
A covering index
Satisfies query entirely from index without accessing base table
click to copy
Bitmap index is efficient for columns with
Low cardinality (few distinct values like gender, status)
click to copy
Function-based index allows
Indexing result of expression/function applied to columns
click to copy
Composite index on (A,B) benefits queries on
A alone OR A+B together (NOT B alone without A)
click to copy
REBUILD INDEX vs REORGANIZE: REBUILD
Drops and recreates the index completely eliminating all fragmentation
click to copy
Partial (filtered) index includes
Only rows satisfying a WHERE filter condition
click to copy
Sequential file organization
Stores records in sorted order based on key field
click to copy
Statistics in query optimizer are used to
Estimate data distribution and cardinality for cost estimation
click to copy

DBMS → Transactions 1

Transaction state 'aborted' means
Rolled back and database restored to pre-transaction state
click to copy

DBMS → Indexes 6

A clustered index stores
Data in same sorted order as the index
click to copy
A dense index has
One index entry for EVERY record in the data file
click to copy
A sparse index has
Index entries for ONLY SOME records (typically one per data block)
click to copy
B+ tree supports
Both equality AND range queries with O(log n) performance
click to copy
Hash index is best for
Equality queries (exact match =)
click to copy
In B+ tree all data records are stored at
Leaf nodes
click to copy

DBMS → Joins 2

Sort-Merge Join requires
Both relations sorted on join attribute
click to copy
Hash Join build phase
Hashes SMALLER relation into memory hash table
click to copy