thecodingcompany
Technical MCQ

DBMS

Normalisation, transactions, indexing and the SQL theory behind the query round.

Questions6
FormatMCQ + explanation

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?
  1. A.1NF
  2. B.2NF
  3. C.3NF
  4. 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?
  1. A.Atomicity
  2. B.Consistency
  3. C.Isolation
  4. 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:
  1. A.It uses less disk space
  2. B.All data pointers are at the leaf level, giving predictable range scans
  3. C.It supports fewer comparisons
  4. 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?
  1. A.A single long transaction
  2. B.Circular waiting among transactions holding locks
  3. C.Two transactions on different tables
  4. 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?
  1. A.INNER JOIN
  2. B.LEFT JOIN
  3. C.RIGHT JOIN
  4. 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?
  1. A.Data loss on crash
  2. B.Concurrent transactions interfering with each other
  3. C.Invalid data types
  4. 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.