Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
41 Which isolation problem occurs when a transaction reads the same row twice and gets different values?
Explanation
A non-repeatable read happens when another committed transaction changes the row between two reads.
Last verified on 27-11-2026
42 Which isolation problem occurs when a transaction reads the same range twice and gets a different number of rows?
Explanation
A phantom read happens when new rows matching a range appear between two reads in the same transaction.
Last verified on 27-11-2026
43 Which isolation level prevents dirty reads but allows non-repeatable and phantom reads?
Explanation
Read Committed only reads committed data, but rows can still change between reads.
Last verified on 27-11-2026
44 Which isolation level is the strictest and prevents dirty, non-repeatable and phantom reads?
Explanation
Serializable makes transactions appear to run one after another, preventing all three anomalies.
Last verified on 27-11-2026
45 Which isolation level allows dirty reads?
Explanation
Read Uncommitted is the lowest isolation level and permits dirty reads of uncommitted data.
Last verified on 27-11-2026
46 What is the purpose of a COMMIT statement?
Explanation
COMMIT makes transaction changes permanent and visible to others.
Last verified on 27-11-2026
47 What is the purpose of a ROLLBACK statement?
Explanation
ROLLBACK discards uncommitted changes and restores the prior state.
Last verified on 27-11-2026
48 In a transaction, what does ROLLBACK TO SAVEPOINT do?
Explanation
ROLLBACK TO SAVEPOINT undoes changes made after the savepoint while keeping the transaction open.
Last verified on 27-11-2026
49 When is denormalisation justified?
Explanation
For read-heavy reporting, denormalisation trades extra update care for faster queries.
Last verified on 27-11-2026
50 Which tool or library is commonly used to read JSON in Python?
Explanation
Python's built-in json module loads and dumps JSON data.
Last verified on 27-11-2026