Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
251 What is a phantom read?
Explanation
- A phantom read is a new row matching the query that appears on a second read.
- SERIALIZABLE isolation prevents phantom reads.
Last verified on 27-11-2026
252 Which isolation level allows dirty reads, non-repeatable reads and phantom reads?
Explanation
- READ UNCOMMITTED is the lowest level and permits all three phenomena.
- It offers the most concurrency and the least protection.
Last verified on 27-11-2026
253 Which isolation level is the strictest?
Explanation
- SERIALIZABLE is the strictest level: transactions behave as if fully serial.
- It prevents dirty, non-repeatable and phantom reads.
Last verified on 27-11-2026
254 What does READ COMMITTED prevent?
Explanation
- READ COMMITTED prevents dirty reads by reading only committed data.
- It still allows non-repeatable and phantom reads.
Last verified on 27-11-2026
255 Which isolation level is the default in most database systems such as SQL Server and Oracle?
Explanation
- READ COMMITTED is the common default.
- MySQL InnoDB defaults to REPEATABLE READ, so the default varies by system.
Last verified on 27-11-2026
256 What is concurrency control?
Explanation
- Concurrency control coordinates simultaneous transactions to preserve correctness.
- Locking and multiversioning are common techniques.
Last verified on 27-11-2026
257 What is a dirty read?
Explanation
- A dirty read sees uncommitted changes that may later be rolled back.
- Low isolation levels allow dirty reads.
Last verified on 27-11-2026
258 What is a lost update?
Explanation
- A lost update occurs when two transactions update the same data and one overwrites the other.
- Locking or proper isolation prevents it.
Last verified on 27-11-2026
259 Which query correctly finds rows where MiddleName is either ‘Ali’ or missing?
Explanation
- IS NULL is required for the missing case; = NULL never matches.
- IN with NULL also fails to match the NULL rows.
Last verified on 27-11-2026
260 What happens when you insert a row without giving a value for a nullable column with no DEFAULT?
Explanation
- An omitted nullable column with no DEFAULT is stored as NULL.
- A NOT NULL column without a DEFAULT would reject the insert.
Last verified on 27-11-2026