Technical MCQ
DBMS
Normalisation, transactions, indexing and the SQL theory behind the query round.
6 questions
Answer each one before scrolling to the solution. The explanation names the mechanism, not just the choice.
01Which normal form eliminates partial dependency on a composite primary key?
- A.1NF
- B.2NF
- C.3NF
- D.BCNF
Answer. 2NF removes partial dependency — a non-key attribute depending on only part of a composite key. 3NF additionally removes transitive dependency.
02Which property of a transaction guarantees that a committed change survives a crash?
- A.Atomicity
- B.Consistency
- C.Isolation
- D.Durability
Answer. Durability guarantees committed data is persisted even after a system failure. Atomicity is all-or-nothing; isolation concerns concurrent transactions.
03A B+ tree index is preferred over a B-tree index for databases mainly because:
- A.It uses less disk space
- B.All data pointers are at the leaf level, giving predictable range scans
- C.It supports fewer comparisons
- D.It avoids rebalancing entirely
Answer. In a B+ tree every record pointer lives in a leaf and the leaves are linked, which makes range queries and sequential scans efficient and predictable.
04What does a deadlock in a DBMS require to occur?
- A.A single long transaction
- B.Circular waiting among transactions holding locks
- C.Two transactions on different tables
- D.An unindexed query
Answer. Deadlock requires a cycle in the wait-for graph: each transaction holds a resource the next one needs.
05Which join returns all rows from the left table and matched rows from the right?
- A.INNER JOIN
- B.LEFT JOIN
- C.RIGHT JOIN
- D.FULL OUTER JOIN
Answer. A LEFT JOIN preserves every left-table row, filling NULLs for the right table where there is no match.
06In ACID, isolation primarily protects against which class of problem?
- A.Data loss on crash
- B.Concurrent transactions interfering with each other
- C.Invalid data types
- D.Slow queries
Answer. Isolation ensures concurrently executing transactions do not observe each other’s intermediate states, preventing dirty reads, lost updates and similar anomalies.
Practise here. Get placed there.
Prep+ is unlimited practice. When you are ready to turn it into an offer, TCC Placement Partner handles portfolio, resume and interviews.